Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Question:

1° Implicit wait time is applied to all elements in your code while Explicit waits
are applied only to a single element for a specified amount of time.
Correct Answer: True

Question:

2° Data Driven Testing (DDT) is a methodology in automated testing to test only a single
set of Test Data. Correct Answer: False

Question:

3° Select the following true statements:

Correct Answer: webDriver.Quit() - Calls Dispose().webDriver.Close() - Closes the focused


browser window

Question:

4° WebDriverWait wait = new WebDriverWait(driver, 30);

wait.until(ExpectedConditions.presenceOfElementLocated(by));

The above wait condition is considered an:

Correct Answer: Explicit wait

Question:

5° Which browsers support Selenium IDE ?

Correct Answer: Mozilla Firefox

Question:

6° Using Selenium, how can we click on an element at certain coordinates ?

Correct Answer: Using the Actions class' method moveToElement(element, xOffset, yOffset)

Question:
7° What would be the ideal way to identify an element without ID or Class ?
By.xpath("//button[contains(., 'Test')]") Correct Answer: By.xpath("//button[contains(.,
'Test')]").By.xpath("//button[contains(text(), 'Test')]")

Question:

8° Consider the following HTML:

Using Selenium WebDriver, how would you select only the element with the 2
classes: 'container' and 'title' ?

Correct Answer: By.xpath("//div[contains(@class, 'container


title')");.By.xpath("//div[contains(@class, 'container') and contains(@class, 'title')]");

You might also like