Selenium WebDriver

 20 Minutes
 10 Questions


This test is designed to assess a candidate's knowledge of the basics of technology and Selenium WebDriver. It will cover topics such as the fundamentals of Selenium WebDriver, how to install and configure it, and how to use it to automate web applications. The test will also include questions about the different types of locators available in Selenium WebDriver, as well as how to use them.


Example Question:

Multiple-Choice
What expression can be placed instead of REPLACE_ME in-order to fetch the element with ID 'sectionA'? (check all that apply)
public static void main(String[] args) {
WebDriver driver = new FirefoxDriver();
driver.get("http://test.com/mainsite.html");
WebElement element = driver.findElement(REPLACE_ME);
driver.quit();
}
//mainsite.html content
<!DOCTYPE html>
<html>
<head>
</head>
<body id="body">
<div class="container">
<div id="sectionA">
Section A
</div>
</div>
<div class="container">
<div id="sectionB">
Section B
</div>
</div>
</body>
</html>