What are valid deviceNames for Chrome emulation testing with selenium webdriver?

326 Views Asked by At

What are valid deviceNames for Chrome emulation testing with selenium webdriver? And also where can i get the device width,height and user agent for the device?

1

There are 1 best solutions below

0
maydinlik On

This is the device list:

https://cs.chromium.org/chromium/src/chrome/test/chromedriver/chrome/mobile_device_list.cc

In Java you can get height and width values by this way:

initial_size = driver.manage().window().getSize();
height = initial_size.getHeight();
width = initial_size.getWidth();