January 2018
Beginner to intermediate
354 pages
7h 59m
English
Once the optional preferences are passed into the setDriver method, the user then has to process those options. For instance, there may be DesiredCapabilities, ChromeOptions, or FirefoxProfile preferences that need to be processed. First, for each driver-type instance, there needs to be a check to see if the options have been passed in, then if so, they have to be processed. Each type will be outlined as shown here:
/** * Process Desired Capabilities method to override default browser * or mobile driver behavior * * @param caps - the DesiredCapabilities object * @param options - the key: value pair map * @throws Exception */private void processDesiredCaps(DesiredCapabilities caps, Map<String, Object>[] options ...
Read now
Unlock full access