E
E
EvGenius Karlonius2018-04-02 00:27:06
selenium
EvGenius Karlonius, 2018-04-02 00:27:06

How can a beginner control the browser with POST and GET commands?

I read that in SELENIUM you can control the browser using POST and GET commands, Recommend lessons or training materials from the moment what and where to install ... I want to control POST and GET, and not Java, Ruby or SeaSharp.
I hope I didn't confuse too much and this is possible.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Eremin, 2018-04-02
@EreminD

It's not very clear what you need.
If I understand correctly, you don't want to write code, you want to send requests to control the browser (open pages, click elements, etc.)
Selenium - it's not a browser emulator. This is the server that manages the browser (there may be more than one browser)
. This server itself accepts GET and POST requests via JSON wire protocol
. There is also Selenium Client - these are libraries in Java / C # / Ruby, etc. They just send all these requests to the server. You write driver.findElement in the code - the library sends a POST request to the Selenium server /session/:sessionId/element
So yes, you can

control the browser using POST and GET commands
To do this, you will need to send http requests, while keeping somewhere the session identifier that the Selenium server assigns to you to insert into each request
. So, sooner or later, you will come to the conclusion that you want to simplify this matter and write on what some kind of PL client, so as not to bother with requests and responses, but to work with a convenient API.
I did not see any courses on driver management via http. And I'm not sure there is. Nevertheless, clients in different languages ​​are needed for this, so that you do not have to mess with the server directly.
Can peep how clients are made in different languages ​​to find answers

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question