Android Question SendKey in Webview

FHEBERT

Member
Licensed User
Longtime User
Hello
How validate a modal message in Webview ? This message is generate with confim() method.

I saw, the sendInput library, but can't download it. The link is broken.
I need to send the return keycode to validate the message.

Thanks
 

drgottjr

Expert
Licensed User
Longtime User
with confirm() in webview there are 2 buttons (OK and Cancel) and (optionally) a message, all you do is tap the OK or the Cancel button, and your choice is passed to webwiew as confirmation. you don't need any special library. just tap one button or the other.
 
Upvote 0
Top