Chapter 6

  1. You can listen to WebDriver events using WebDriverEventListener interface: True or False?

True.

  1. How you can automatically clear an input field before calling the sendKeys method using WebDriverEventListener?

We can call the WebElement.clear() method in the beforeChangeValueOf() event handler.

  1. Selenium supports Accessibility Testing: True or false?

False. Selenium does not support Accessibility testing

Get Selenium WebDriver 3 Practical Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.