I am a beginner in Appium automation. The application I am , have this scenario where I need to on button from the native . I have tried with pressKeyCode but getting this error-

The method pressKeyCode(int) is undefined for the type WebElement

I am using the following Environment-

Appium 1.4.16.1 with Java client 5.0.0-BETA8 
Selenium 3.4.0

I don’t know what I am doing wrong? I have tried with earlier Java client for appium as well but nothing has worked so far. Also, is there any workaround other than the pressKeyCode to do this?



Source link https://sqa.stackexchange.com/questions/29461/-to-tap-on-search-on--keyboard-using--method

LEAVE A REPLY

Please enter your comment!
Please enter your name here