'Is there a way to simulate a website button-click in android studio or calling it's javascript code?

how can I simulate a button click, which is calling javascript-code in android studio?

It's like a follow button.

I have to login in this website. For now I do that with Jsoup. Then to follow, I have to click a button (the button calls javascript code).

I would like to automate that in android studio with own methods.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source