TestProject Forum

Unable to execute mobile emulation in chrome

Hi, I’m trying to emulate chrome on a mobile device by using the “mobileEmulation” capability, but I’m getting the execution in the usual desktop mode. Here is my code:

Map<String, String> mobileEmulation = new HashMap<>();
mobileEmulation.put(“deviceName”, “Galaxy S5”);
ChromeOptions chromeOptions = new ChromeOptions();
chromeOptions.setExperimentalOption(“mobileEmulation”, mobileEmulation);
//ChromeDriver chromeDriver = new ChromeDriver(DevelopmentToken, chromeOptions, ProjectName, JobName);
ChromeDriver chromeDriver = new DriverBuilder(chromeOptions)

ChromeDriver: 91.0.4472.101
java-sdk 1.2.2-RELEASE
Agent version 2.3.6

Any help,


Hello @cd_platform

I’ve submitted bug #16080 to the R&D team.
Once it’s resolved, we will let you know.

Following up on the above issue, a new TestProject Agent version has just been released on the TestProject platform, which should fix the issue.

Can you please update the TestProject Agent installed on the machines where the users are facing the issue?

You can navigate to TestProject and click on the following button:

Also make sure to use the latest OpenSDK.
Please let us know in case you are facing any issues.

It’s solved.

Thank you very much.