How page synchronization can be achieved in Selenium WebDriver?

0 votes
How page synchronization can be achieved in Selenium WebDriver?
May 27, 2019 in Selenium by Dhvani
1,136 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, 2019 by Ujjwal

Related Questions In Selenium

0 votes
1 answer

Can anyone explain how an AJAX call can be handled in Selenium webdriver?

Hello Megha, to demonstrate how AJAX calls are ...READ MORE

answered May 8, 2019 in Selenium by Pratibha
• 3,690 points
413 views
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, 2019 in Selenium by Anvi
• 14,110 points
160 views
0 votes
1 answer

How a prompt alert can be handled in Python Selenium Webdriver?

Hey Duran, you can handle a prompt ...READ MORE

answered Jul 29, 2019 in Selenium by Abha
• 27,950 points
253 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
4,028 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,978 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,918 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,350 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, 2019 in Selenium by Anvi
• 14,110 points
5,550 views
+1 vote
2 answers