Different types of synchronization

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


Please Help Members By Posting Answers For Below Questions

What is the difference between driver.getwindowhandle() and driver.getwindowhandles() in selenium?

598


What is a node in selenium grid?

638


Explain what are the junits annotation linked with selenium?

572


My application uses ajax heavily how do I use selenium rc to work with ajax operations?

585


What are the advantages of selenium as a test tool?

525






How can it be found if an item is displayed on the screen?

598


Other than the default port 4444 how you can run selenium server?

545


What evaluation can selenium do?

605


Does the selenium ide have any drawbacks?

594


What are the advantages of selenium grid?

604


Explain what are the different types of locators in selenium?

566


Write a code snippet to navigate back and forward in browser history?

627


How to use frame elements in Selenium on a page?

625


How do you achieve synchronization in webdriver?

595


How to execute javascript in selenium?

611