I am trying to write end to end test cases for mobile web browsers. So I am setting the configuration for google chrome as below and it runs fine.
{
browserName: 'chrome',
'goog:chromeOptions': {
mobileEmulation: { deviceName: 'Apple iPhone 6' },
}
But I am not sure from where 'goog:chromeOptions' is taken. I tried searching wdio docs and couldn't find any. I just got this from one of the blog that we need to pass key as "goog:chromeOptions"
Similarly I also need to run for Firefox and safari browsers. So I am not sure what key/hash we need to pass for firefox for mobile emulation.
I am trying to learn WDIO by practising simple exercises.
Set configuration for Google Chrome:
Set configuration for the Firefox:
Set configuration for the Safari:
Read more in the CONFIGURATIONFILE.MD