difference between Implicit Wait and Explicit Wait with syntax.?
Answer Posted / ravi teja
IMPLICIT WAIT:
This concept is only working for Find Element and Find Elements .
WebDriver driver = new FirefoxDriver();
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
EXPLICIT WAIT:
It depends on condition by checking continuously
WebDriverWait w=new WebDriverWait(driver,100);
wait.until(ExpectedConditions.invisibilityOfElementLocated(By.xpath("//*[@class='firstname']")));
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How many types of locators are there in selenium?
How to perform drag and drop action in selenium webdriver?
What are the main advantages of automation testing?
If one wanted to display the value of a variable named answer in the log file, what would the first argument to the previous command look like?
How can you find if an element is displayed on the screen?
Can captcha be automated?
Which are the commands used for capturing the bitmaps?
What is the use of selenium grid?
What is framework and what are the frameworks available in rc?
How can we find the value of different attributes like name, class, value of an element?
How to scroll down a page using javascript in selenium?
How can we type text in a textbox element using selenium?
How to write selenium code for purchasing product from amazon
What is the difference between driver.getwindowhandle() and driver.getwindowhandles() in selenium?
How many types of waits in selenium?