Closed xframiumAS closed 7 years ago
The mobile emulation is added to chrome options as per the below code Map<String, String> mobileEmulation = new HashMap<String, String>(); mobileEmulation.put("deviceName", "Google Nexus 5");
Map<String, Object> chromeOptions = new HashMap<String, Object>(); chromeOptions.put("mobileEmulation", mobileEmulation); DesiredCapabilities capabilities = DesiredCapabilities.chrome(); capabilities.setCapability(ChromeOptions.CAPABILITY, chromeOptions);
Our deviceRegistry supports objectcapability where this option can be passed as
To support this type of formats the code in ChromeOptionsFactory has to be changed from else if(name.equalsIgnoreCase("prefs")) to else statement
resolved in 1.0.6
in chrome options factory, change the below condition from else if to else else if(name.equalsIgnoreCase("prefs"))