October 2018
Intermediate to advanced
192 pages
5h 12m
English
The WebDriver APIs provide techniques to pass capabilities to ChromeDriver. The ChromeOptions class is one such technique that is supported by Java.
Let's look at an example of the Save password dialog that shows up when you log in to an application on Google Chrome, as shown in the following screenshot:

We need to prevent this dialog from appearing, so we need to use ChromeOptions. We create an object of ChromeOptions, which is then passed to the ChromeDriver constructor. This object contains convenient methods for setting ChromeDriver- specific capabilities.
The following code disables the Save password popup for ...
Read now
Unlock full access