How page synchronization can be achieved in Selenium WebDriver?

0 votes
How page synchronization can be achieved in Selenium WebDriver?
May 27 in Selenium by Dhvani
57 views

1 answer to this question.

0 votes

Hey Dhvani, Page Synchronization can be achieved with implicit_wait() method in webdriver. Syntax for implicit wait is:

driver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);

Here it will wait for 10sec if while execution driver did not find the element in the page immediately. This code will attach with each and every line of the script automatically. It is not required to write every time. Just write it once after opening the browser.

answered May 27 by Ujjwal

Related Questions In Selenium

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

How javascript code can be executed in Selenium Webdriver?

Hey Veena, execute_script is used to execute ...READ MORE

answered Jul 23 in Selenium by Anvi
• 13,840 points
34 views
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,090 points
799 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,040 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
743 views
0 votes
1 answer

How @FindBy annotation of Page Factory can be used in Selenium?

Hey Mridul, Page Factory uses annotation @FindBy to ...READ MORE

answered Jul 4 in Selenium by Anvi
• 13,840 points
249 views