Search This Blog

August 1, 2017

The device names of mobile emulation are changed in Selenium Chrome Driver 2.30

I upgraded the Chrome Driver to 2.30 in our test framework last month. When running the tests in iPhone emulator in Chrome, I got the following error.  

OneTimeSetUp: System.InvalidOperationException : unknown error: cannot parse capability: chromeOptions from unknown error: cannot parse mobileEmulation from unknown error: 'Apple iPhone 6' must be a valid device from unknown error: must be a valid device   (Driver info: chromedriver=2.30.477700 (0057494ad8732195794a7b32078424f92a5fce41),platform=Windows NT 6.1.7601 SP1 x86_64) 

After looking into this issue, I noticed that in Chrome driver 2.30, the device names are changed in options.EnableMobileEmulation() method. 

Apple iPhone 6 is changed to iPhone 6.
Apple iPad is changed to iPad.
Google Nexus 10 is changed to Nexus 10. 
Samsung Galaxy S5 is changed to Galaxy S5. 

After changing the device names and running the tests, all tests passed. 

No comments: