difference between Implicit Wait and Explicit Wait with syntax.?
Answer Posted / sehgalkhyati@gmail.com
EXPLICIT WAIT- Will stop the execution for the given mentioned time.
WebDriverWait wait = new WebDriverWait(driver, 10);
WebElement element = wait.until(ExpectedConditions.elementToBeClickable(By.id("someid")));
IMPLICIT WAIT- will be applicable toeach and every element on web
WebDriver driver = new FirefoxDriver();
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
driver.get("http://url_that_delays_loading");
WebElement myDynamicElement = driver.findElement(By.id("myDynamicElement"));
Is This Answer Correct ? | 10 Yes | 0 No |
Post New Answer View All Answers
Describe the purpose of xpath.
What is the command to insert text into the HTML text box using Selenium?
What are the different types of frameworks?
How can you fetch an attribute from an element? How to retrieve typed text from a textbox?
How do you verify if the checkbox/radio is checked or not?
What do you mean by the assertion in selenium?
Is webelement an interface or a class?
How to locate a link using its text in selenium?
How to scroll down a page using javascript in selenium?
How to handle alerts in selenium?
What are the advantages and disadvantages of using selenium as testing tool?
What is the command line we have to write inside a .bat file to execute a selenium project when we are using testng?
What are junit annotations?
What is a data driven framework?
What does a knot do on the selenium grid?