You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently trying to use Chrome's mobile emulation to test a mobile site. This is supported by ChromeDriver as documented here: Mobile Emulation. This shows setting the chromeOptions capability to a map of values.
Could CapabilitySet be extended to also allow a java.util.Map to also be passed, so that mobile emulation could be enabled by setting the serenity.driver.capabilities property to something like:
serenity.driver.capabilities=chromeOptions:{mobileEmulation:{deviceName:'Google Nexus 5',userAgent:'Mozilla/5.0 (Linux; Android 4.2.1; en-us; Nexus 5 Build/JOP40D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19'}}
The text was updated successfully, but these errors were encountered:
Hello.
I am currently trying to use Chrome's mobile emulation to test a mobile site. This is supported by ChromeDriver as documented here: Mobile Emulation. This shows setting the chromeOptions capability to a map of values.
Currently Serenity's serenity.driver.capabilities allows us to pass driver capabilites which are of type String, Integer, Boolean and java.util.List. This is done within CapabilitySet.asObject().
Could CapabilitySet be extended to also allow a java.util.Map to also be passed, so that mobile emulation could be enabled by setting the serenity.driver.capabilities property to something like:
serenity.driver.capabilities=chromeOptions:{mobileEmulation:{deviceName:'Google Nexus 5',userAgent:'Mozilla/5.0 (Linux; Android 4.2.1; en-us; Nexus 5 Build/JOP40D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19'}}
The text was updated successfully, but these errors were encountered: