Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to test page loaded successfully?

Answer Posted / surya

using WebDriverWait we can check as we can wait until completion of expected condition.

ex:
WebDriverWait wait = new WebDriverWait(driver, 10);

WebElement elem = driver.findElement(By.id("myInvisibleElement"));
elem.click();
wait.until(ExpectedConditions.visibilityOf(elem));

please correct me if i m wrong.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When do you use selenium grid?

946


how to handle staleelementreferenceexception?

995


What is the difference between getwindowhandles() and getwindowhandle()?

1081


How could ajax controls be handled in webdriver?

1053


Explain me how to handle alerts in selenium webdriver?

923


Which is the package which is to be imported while working with webdriver?

1112


What is a fundamental difference between xpath and css selector?

1000


How to capture screenshot in selenium webdriver?

1053


What does side stand for?

954


List out different types of locators?

921


What you say in regards to the flexibility of selenium test suite?

1036


Tell me how you can find broken images in a page using selenium web driver?

916


what will be the first salary and what will be the hike in the salary?

899


How colors could be handled in selenium webdriver?

1049


What are the important selenium ide commands or selenese commands?

1038