Answer Posted / bharat
There are two types of synchronization in selenium
1)Unconditional Synchronization
Exam:- wait(), time.sleep()
2) Conditional Synchronization
- Implicit wait
Exam -driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
- Explicit wait
Exam -
WebDriverWait wait = new WebDriverWait(driver, 10);
wait.until(ExpectedConditions.visibilityOfElementLocated(By.id(“statedropdown”)));
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Why do you need session handling while working with selenium?
Which selenium command(s) simulates selecting a link?
My application uses ajax heavily how do I use selenium rc to work with ajax operations?
What happens if I run this command. Driver.get(“www.softwaretestingmaterial.com”) ;
Tell me what is a hub in selenium grid?
What is an explicit wait in selenium?
How does testng allow you to state dependencies?
What is an absolute xpath?
Write a code snippet to launch internet explorer browser in webdriver.
How to handle hidden elements in selenium webdriver?
How to check whether a text is underlined or not?
Name the different types of waits in webdriver.
What are the types of webdriver apis available in selenium?
How to check if an element is visible on the web page?
What is the purpose of the getoptions() method?