Good day to all.

Suppose that there is a web site, for example, on which you can leave a comment without registering. There is an application for android, which contains two elements: lineEdit and a simple button. It is required to send the lineEdit content by clicking on the button in the android application to the website, i.e. leave a comment on the website. Thus, it is assumed that the text from lineEdit is inserted into the comment window on the web site, and then a button is programmatically pressed on the web site that sends the comment.

Actually, the key point is the question of how to insert text through android into the required form on the web site, as well as how to press the necessary button on the web site. As I understand it, you can do this through selenium. Is it really so? Or maybe there are ways easier?

For example, in C # it was not very difficult to press a button:

webBrowser1.Document.GetElementById("id").InvokeMember("click"); 

I would be very grateful for the help.

  • one
    Most likely, if you look at the browser console through the parameters of the request, sent when you click on the site button (address, headers, type) and emulate this request on the android, the comment will be sent - Yuriyi
  • Why emulate a click if you can transfer the data to the script on the server? In the same form of POST / GET - Maxim Drobyshev

0