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?

Answers were Sorted based on User's Feedback



how to test page loaded successfully?..

Answer / 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

how to test page loaded successfully?..

Answer / dolly

We can ensure that the page is loaded completely by using javascriptwait method, by defining the wait time to check the condition.
(“return document.readyState”.equal(complete) ---boolean(Y/N) – true means its loaded completely.
Using TRY n Catch method (catch the exception saying page did not load in the stipulated time)

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Selenium Interview Questions

How can you fetch an attribute from an element? How to retrieve typed text from a textbox?

0 Answers  


what is the difference between absolute path and relative path?

0 Answers  


How testing is better than junit?

0 Answers  


How do you read data from excel?

0 Answers  


How do u get the attribute of the web element?

0 Answers  


How do you get the width of the textbox?

0 Answers  


how to Handle dropdown?

2 Answers   Cryptopy Technologies,


How will u write page object models and data driven model.

0 Answers   Cognizant,


How do you handle frames

1 Answers  


Do you know how to locate a link using its text in selenium?

0 Answers  


How to capture the screenshot of failed testcase only among a set of testcases?

2 Answers   CGI, Cube Digi,


What is the difference between poi and jxl jar?

0 Answers  


Categories