To check that the web page is loaded or not using Selenium Web Driver?

0 votes
How to check that whether a web page is loaded completely or not? The web application I am automating has some Ajax calls.

I have used Implicit Wait for now.
May 24, 2018 in Selenium by GandalfDwhite
• 1,320 points
5,985 views

1 answer to this question.

0 votes

The solution is using Implicit Wait which will solve your problems of page load

Here is an example: on opening a web page, some element on the page are not visible and you have to wait for it, in this case, use the below code:

WebDriverWait waitForElement = new WebDriverWait(driver, 15);

WebElement element = driver.findElement(By.id("myElement"));
element.click();
wait.until(ExpectedConditions.visibilityOf(element));
answered May 24, 2018 by Meci Matt
• 9,420 points

Related Questions In Selenium

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,110 points
965 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points
1,125 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
868 views
0 votes
1 answer

Check that the element is clickable or not in Selenium WebDriver

Use Selenium Waits: WebDriverWait ...READ MORE

answered Jun 12, 2018 in Selenium by Meci Matt
• 9,420 points
10,588 views
0 votes
1 answer

Is it possible for a website to detect that we are using Selenium with ChromeDriver

Selenium tests for pre-defined javascript variables which ...READ MORE

answered Apr 27, 2018 in Selenium by Meci Matt
• 9,420 points
2,363 views