selenium.waitForPageToLoad(“30000”) method in Selenium WebDriver

0 votes

I used the following code for page loading using Selenium RC:

selenium.waitForPageToLoad("30000");

How can I use it with the help of Selenium Webdriver

Apr 9, 2018 in Selenium by ajs3033
• 7,280 points
3,131 views

1 answer to this question.

0 votes

You can use two approaches using Selenium Webdriver

First you could use Thread.sleep(60000) and

Second: If you want to make sure that the page is loaded or not below approach will help u out:

Identify an element in the landing page & wait for it to be clickable. You are then sure that the page has been loaded.

WebDriverWait wait = new WebDriverWait(driver,120);

wait.until(ExpectedConditions.elementToBeClickable(By.id(id)));

In this case it waits for a max of 120 sec. for the element to be clickable. If the element is clickable before that, your test will be executed.

answered Apr 9, 2018 by Vardy
• 2,360 points

Related Questions In Selenium

0 votes
1 answer

What is the use of deSelectAll() method in Selenium Webdriver?

Hello Inderjeet, deselectAll() method is useful to ...READ MORE

answered May 31, 2019 in Selenium by Yogesh
2,427 views
0 votes
1 answer

Is there any method to reset the HTML text box in Selenium Webdriver?

Hey Anushka, you can use clear() function to ...READ MORE

answered Jun 24, 2019 in Selenium by Abha
• 27,930 points
477 views
0 votes
4 answers

How to specify "ENTER" button functionality in Selenium WebDriver code?

using OpenQA.Selenium.Interactions; Actions builder = new Actions(driver); ...READ MORE

answered Feb 12, 2019 in Selenium by anonymous
43,125 views
0 votes
2 answers

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,520 points
3,769 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31 in Selenium by Sri
• 2,970 points
4,750 views
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,890 points
2,729 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 2 in Selenium by Sri
• 2,970 points
3,093 views
0 votes
1 answer

Using gettext() method for the specific element using Selenium WebDriver

Mistake is that u r printing the ...READ MORE

answered Apr 10, 2018 in Selenium by Vardy
• 2,360 points
22,070 views
0 votes
1 answer

Page Object Pattern in Selenium WebDriver

Check below links: Documentation: Page Objects and PageFactory  Page Object Design Pattern  Other ...READ MORE

answered Apr 17, 2018 in Selenium by Vardy
• 2,360 points
324 views