Internal elements of selenium

How does selenium work? You can explain the inner workings.

+3
source share
4 answers

First, a javascript code layer will appear, which is used to automate the browser and simulate events, run and test tests. Then you start the proxy server that your browser points to - which injects this javascript code. Then you can talk to this proxy server through a different port using a set of commands that forces the proxy server to enter javascript code to launch (or remotely control) a working browser. Using this structure, you can write automated test scripts in a style very similar to writing macros for the browser.

+4
+2

. , , HTML, , . . ROBOT, MOUSECLICK MOUSE Move .. . , :-)

0

I) RC,


  • script ( )
  • script "Java Script "( )
  • Then it reaches the browser and performs further actions based on the script (type, click, etc.). If the item is not found, then it will go through the exception. :)

Ii) If it is selenium webdriver, then the process will be


  • Instead of the aforementioned process, the script will directly interact with the specified browser (using the browser API) -> Then follow the next steps.
0
source

Source: https://habr.com/ru/post/1697311/


All Articles