How can I pass the ADB command for screen rotation in Java when running automation tests on LambdaTest as per the documentation?
Hello Macy-davis,
You can pass the ADB command like below:
Map<String, Object> params = new HashMap<>();
params.put("command", "autorotate");
params.put("enableAutoRotate", true);
driver.executeScript("lambda-adb", params);