Working with access keys

We are going to focus on access keys for this section. You could use the Advanced User Interactions API to fill in fields, but .sendKeys() generally works without any problems, so it's really not worth the effort. Something that we do have problems interacting with is access keys because they don't rely on a specific element in the DOM.

Access keys can be controversial. Some people see them as a requirement for an accessible website, while others see them as well-intentioned, but badly implemented and unusable. Regardless of your views on them, it is quite possible that you will come across access keys at some point in your career and it's always useful to know how to deal with them.

Access keys can be tricky to work ...

Get Mastering Selenium WebDriver 3.0 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.