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 selenium-rc (remote control) ?

542


How do you clear the contents of a textbox in selenium?

459


What are the limitations of selenium?

458


How to assert text of webpage using selenium 2.0?

474


What is the use of driver.get("url") and driver.navigate().to("url") command? Is there any difference between the two?

521






When should I use Selenium IDE?

540


What types of cases can be automated with Selenium?

552


What test can selenium do?

523


How can we move to a particular frame in selenium?

496


What is selenium? What are the different selenium components?

504


Explain how you can find broken images in a page using selenium web driver?

463


What are the different components of the selenium?

480


Tell me what you know about selenium?

521


What do you know about selenium?

501


Mention what are the challenges in handling ajax call in selenium webdriver?

507