Webview auto click

hello i’m making an app, which will be a kind of browser with voice command. and would like to know if there is any way to command with the voice that clicks on a specific button on the web page. thanks

I think so, using javascript.
See here:

And here:
https://puravidaapps.com/inject.php

No.
You can’t do this.
Because every site have different dom tree so how you find some button on dom tree and addEventListener on it.
Its possible only for own website because you know dom tree.

As you said you are making browser so there is no specific website

hello thanks for the replies. in my situation it is only on my own website. any idea how to do it?

1 Like

So you can see my reply:


And you will need to

1 Like

Add an id on button and use getElementById method and call it.
Also done with addEventListener.

works, thanks

The mark solution

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.