O'Reilly logo

Mastering Selenium WebDriver 3.0 by Mark Collin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required