简体   繁体   中英

how to handle keyboard input in appium for ios in javascript?

For our app, we are doing automation using appium in JavaScript. In one screen, we need to enter a PIN from the keyboard.

I have tried pressKeyCode(Keycode) for Android and I was able to handle keyboard input.

Can someone help me in fining a way to enter number in iOS using some method ? pressKeycode(keycode) is not working in iOS.

Please try using the Sendkeys() function:

 element.Sendkeys("12");

If this doesn't fulfill your needs, please post some code and we can help further.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM