Good afternoon, how can I click on Input
in the html-коде
using HttpURLConnection
?
input type="submit" class="btn btn-primary btn-large" value="Логин"
I assume that this action can be performed using setRequestProperty
, just how?
Good afternoon, how can I click on Input
in the html-коде
using HttpURLConnection
?
input type="submit" class="btn btn-primary btn-large" value="Логин"
I assume that this action can be performed using setRequestProperty
, just how?
Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .
Using HttpURLConnection in any way. You can use the Headless browser, such as Selenium or HtmlUnit. HtmlUnit is not able to perform complex js, so I recommend Selenium and to it PhantomJsDriver
Since PhantomJS works as a browser (just not visible to the user) you need to install phantomjs-2.1.1-windows to it (unpack from archive to disk)
Here is a simple example found - https://www.appneta.com/blog/automated-testing-java/
Source: https://ru.stackoverflow.com/questions/558372/
All Articles