Selenium 3.0 Quiz Questions and Answers

Answer :
  • 3
Answer :
  • Select se = new Select(driver.findElement(By.xpath( "//*[@id='oldSelectMenu'] ")));
Answer :
  • driver.switchTo( ).alert( ).accept();
Answer :
  • driver.switchTo( ).alert( ).dismiss();
Answer :
  • driver.switchTo().alert().getText();
Answer :
  • Both a and b
Answer :
  • driver.switchTo().alert().sendKeys();
Answer :
  • This is used to set the amount of time the WebDriver must wait for an asynchronous script to finish execution before throwing an error.
Answer :
  • Implicit Wait time is applied to all the elements in the script
  • Explicit Wait time is applied only to those elements which are intended by us
Answer :
  • implicitlyWait();