waits

implicitwait :
implicit wait syntax is "driver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);" and it is useful for every element which is opened by driver instance and if the element is not finded it will wait until the time we given

explicitwait it is the wait which is useful for particular element which will take much time to load so that type of elements it will use

webdriverwait wait=new webdriverwait(WebDriver reference,20);
wait.until(Expectedconditions.alert is present);
so this is about explicit wait

fluentwait: this is the wait whih is useful for the particular element which will take much time to load  so that it will take action for particular time and wait and again do the action and ignore the class
Wait wait = new FluentWait(WebDriver reference)
.withTimeout(timeout, SECONDS)
.pollingEvery(timeout, SECONDS)
.ignoring(Exception.class);

Comments

Popular posts from this blog

Selenium Locators usage

Java Theory interview questions

java programmes frequently asked in interview