R
R
redcircle2017-11-21 21:27:42
Objective-C
redcircle, 2017-11-21 21:27:42

How to emulate keystrokes for UIWebView?

The iOS app has a UIWebView with arbitrary HTML loaded (including input text fields).
It is necessary to inject keystrokes (in the form of symbols or key codes) from the iOS application to the UIWebView so that the HTML page perceives it as if the user is typing these characters from a regular iPhone / iPad keyboard.
To emulate finger taps, there is already a solution - the KIF framework. I'm having trouble emulating keystrokes.
It is acceptable to use any undocumented API - the question of publishing in the App Store is not worth it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
doublench21, 2017-11-24
@doublench21

iOS Headless Browser
https://github.com/mkoehnke/WKZombie
https://github.com/phimage/Erik

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question