Selenium Online Quiz January 5, 2021 Below are the instructions for this quiz: No time limit for the Quiz This quiz has 20 questions Multiple choice questions Multiple attempts are allowed Enter your email: 1. What is the latest stable version of Selenium?4.03.141.593.143.140.21 2. Is Selenium WebDriver an interface?TrueFalse 3. What are valid Selenium WebDriver Exceptions?. Select all that apply. NoSuchElementException StaleElementReferenceException ElementNotVisibleException NoElementFoundException 4. What are different types of Selenium Waits? FluentWait ExplicitWait ImplicitWait ElementWait 5. What type of applications are supported by Selenium?Web ApplicationsDesktop ApplicationsBoth 6. Which of these is not a valid Selenium locator?xpathnameidlink 7. Which select method is used to select an option by valueselectByVisibleTextselectByValueselectByValselectByValues 8. What is the default wait time in Selenium?30 seconds60 seconds10 seconds20 seconds 9. What is the command to close all browsers in Selenium?driver.quit()driver.close()driver.closeAll()driver.closeBrowser() 10. Which of the following represents a relative xpath in Selenium?//*[@id=submit]/div/a 11. Which Selenium command can be used to retrieve text from an element?text()getText()getElementText()get() 12. Which wait command in Selenium waits for the specific element on the page?ExplicitWaitImplicitWaitFluentWaitElementWait 13. How can you get all links in the page with Selenium?List links = driver.findElement(By.tagName("a"));List links = driver.findElements(By.tagName("a"));WebElement links = driver.findElements(By.tagName("a")); 14. How can you scroll the page down in Selenium?((JavascriptExecutor) driver).executeScript("window.scrollBy(0,500)");((JavascriptExecutor) driver).executeScript("window.scrollBy(500,0)");(JavascriptExecutor).executeScript("window.scrollBy(0,500)");driver.scrollWindowBy(0,500)"); 15. Which Selenium command can be used to delete all cookies?webdriver.manage.deleteAllCookies();webdriver.manage.deleteCookies();deleteAllCookies();webdriver.manage.clearAllCookies(); 16. How can you perform right click operation in Selenium?action.moveToElement.contextClick().perform();action.moveToElement(element).contextClick().perform();driver.contextClick(element);action.moveToElement(element).rightClick().perform(); 17. How to click on a link by its text in Selenium?driver.findElement(By.link("Home")).click();driver.findElement(By.name("Home")).click();driver.findElement(By.linkText("Home")).click();driver.findElement(By.Text("Home")).click(); 18. Which programming languages are supported by Selenium? Cobol Java Python JavaScript 19. What is the return type of the driver.get() method in Selenium?StringElementnullvoid 20. How can you switch to a new window in Selenium?driver.switchTo().window(child_window);driver.switchWindow(child_window);driver.navigateTo().window(child_window);driver.getWindow(child_window);
Good Questions..
Nice quiz