HOME
Selenium Quiz – You can test your knowledge with this Selenium Quiz. We have created this Selenium WebDriver Quiz Online Test to help you master Selenium.
1.Which one of the following is correct for WebDriver?
2. Which of the following language is not supported by Selenium
3. What would be the outcome if you try to run the below code?
WebDriver driver=new WebDriver();
4: Which of the following is NOT a component of selenium?
5. Select the correct option on how to select an element that contains "QAAutomation"
6. Which command you use to navigate to https://qaautomation.expert
7. Selenium command for entering text into text boxes?
8. findElements("Locator") method returns
9. Select the correct statement to maximize the browser window
10. Which of the following expression is used for "anything"?
11. Consider the web page is still loading and the element is not yet on the screen at the time of the find operation. What would be the exception thrown by the WebDriver?
12. Which of the below method can ensure that the WebElement is enabled or not ?
13. Which of the below method verify the presence of a WebElement on the screen?
14. The format to write a custom xpath
15. What does the asterisk represent in the below statement ?
16. Select the correct statements about driver.close() and driver.quit()
17. Select the correct statement for a fluent wait
18. Which of the following is NOT a type of wait mechanism available in Selenium?
19. Which of the following methods is used to clear the text in a text field using Selenium?
20. Is Explicit wait applied only to a single element for a specified amount of time
Answers
- a) Interface
- b) ASP
- b) Compilation error- Cannot instantiate the type WebDriver
- e) WebElement
- a) WebElement element = driver.findElement(By.xpath("//*[contains(text(), ' QAAutomation')]"));
- b) driver.navigate.to("https://www.qaautomation.expert");
- a) sendKeys()
- c) List of WebElements
- c) driver.manage().window().maximize();
- b) .*
- a) NoSuchElementException
- c) isEnabled()
- a) isDisplayed()
- b) //tag-name[@attribute='attribute value']
- b) driver.close() closes the current window and d) driver.quit() closes every associated window with this driver and quits the driver
- b) driver.close() closes the current window and d) driver.quit() closes every associated window with this driver and quits the driver
- c) Both a and b
- a) thread.sleep();
- a) element.clear();
- a) No
No comments:
Post a Comment