How to press a key in my app automation test on the LambdaTest platform?

How to press a key in my app automation test on the LambdaTest platform?

Hi Tim,

You can press a key code using the below command:

driver.pressKey(new KeyEvent(AndroidKey.ENTER)); // to press enter key