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
971 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,250 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 in Selenium by Yogesh
188 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 in Selenium by Abha
• 22,870 points
43 views
0 votes
3 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 in Selenium by anonymous
8,797 views
0 votes
1 answer

How to handle drop downs using Selenium WebDriver in Java

First, find an XPath which will return ...READ MORE

answered Mar 27, 2018 in Selenium by nsv999
• 5,090 points
1,967 views
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,090 points
555 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
890 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
553 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,250 points
5,570 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,250 points
185 views