This webdriver quiz is designed to test your knowledge of Selenium / WebDriver for Test Automation.
Selenium WebDriver Quiz
Quiz-summary
0 of 17 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
Information
Selenium WebDriver Quiz
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
Results
0 of 17 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0)
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- Answered
- Review
-
Question 1 of 17
1. Question
Selenium IDE is supported by which browser?
Correct
Incorrect
-
Question 2 of 17
2. Question
In WebDriver, which command can be used to enter values onto text boxes? Select the best answer.
Correct
Incorrect
-
Question 3 of 17
3. Question
In webdriver, which of the following commands retrieves the text of a html element?
Correct
Incorrect
-
Question 4 of 17
4. Question
Consider the following html snippet
- Firefox
- Google Chrome
- Internet Explorer
- Opera
- Safari
Which CSS selector is a valid statement to select Opera?
Correct
Incorrect
-
Question 5 of 17
5. Question
In webdriver, which of the following is a valid select statement that selects a value from a drop down element?
Correct
Incorrect
-
Question 6 of 17
6. Question
In webdriver, selectAllOptions() is a valid command.
Correct
Incorrect
-
Question 7 of 17
7. Question
In webdriver, what is the method that counts the number of elements?
Correct
Incorrect
-
Question 8 of 17
8. Question
In webdriver, which command takes you forward by one page on the browser’s history?
Correct
Incorrect
-
Question 9 of 17
9. Question
In webdriver, which methods navigates to a URL?
Correct
Incorrect
-
Question 10 of 17
10. Question
In webdriver, deselectAll() is a valid command.
Correct
Incorrect
-
Question 11 of 17
11. Question
Which WebDriver method is used to change focus to an alert, a frame or a browser window?
Correct
Incorrect
-
Question 12 of 17
12. Question
Consider the following code snippet
WebDriverWait wait = new WebDriverWait(driver, 30);
wait.until(ExpectedConditions.presenceOfElementLocated(by));This is an example of an implicit wait.
Correct
Incorrect
-
Question 13 of 17
13. Question
Implicit wait time is applied to all elements in your script and Explicit wait time is applied only for particular specified element.
Correct
Incorrect
-
Question 14 of 17
14. Question
In webdriver, which method closes the open browser?
Correct
Incorrect
-
Question 15 of 17
15. Question
Consider the following HTML code snippet
1 2 3 4 driver.findElement(By.xpath(“//table/tr[1]/td”)).getText();
Correct
Incorrect
-
Question 16 of 17
16. Question
The following codes both print:
Welcome to TestingExcellence.com
Welcome to TestingExcellence.com
System.out.println(driver.getTitle());
System.out.println(driver.findElement(By.tagName(“title”)).getText())
Correct
Incorrect
-
Question 17 of 17
17. Question
What is the output of the following statement?
Name 1
Name 2driver.findElement(By.cssSelector(“#name”));
Correct
Incorrect