selvatp
selvatp

Reputation: 3

Protractor -> Chrome Options Error

Getting Error:

E/launcher - unknown error: cannot parse capability: chromeOptions
from unknown error: cannot parse mobileEmulation
from unknown error: 'Google Nexus 5' must be a valid device
from unknown error: must be a valid device
  (Driver info: chromedriver=2.30.477700

Protractor configuration:

capabilities: {
  'browserName': 'chrome',
   'chromeOptions': {
                'mobileEmulation': {
                    'deviceName': 'Google Nexus 5'
                }
            }
},

Any ideas why ?

Upvotes: 0

Views: 821

Answers (1)

alecxe
alecxe

Reputation: 474161

I think the device name has to be exactly equal to a supported device, in this case, specify Nexus 5 only:

capabilities: {
  'browserName': 'chrome',
   'chromeOptions': {
        'mobileEmulation': {
            'deviceName': 'Nexus 5'
        }
    }
},

Upvotes: 1

Related Questions