Use pressKeyCode method does not work in Appium not given

 

 

In order to support the Android system appium 7 and above, automationName used UIAutomator2. But found that, when using androidDriver.pressKeyCode (AndroidKeyCode.ENTER) method, the search page no carriage return, did not meet expectations in the Enter keyboard simulation results, view the server logs are not being given the information. If automationName changed Appium is normal.

Click on the return key

Driver.pressKeyCode(AndroidKey.BACK);

Guess you like

Origin www.cnblogs.com/kaola8023/p/11730886.html