February 2019
Intermediate to advanced
256 pages
7h 34m
English
If the script is done by using SeleniumBASE, the browser proxy can be specified with proxy command options. Please be aware that our example, NodeGoat_SignIn.py, cannot be executed directly by using SeleniumBASE. Here are the steps to convert our original selenium script into SeleniumBASE style. The steps work under the assumption that SeleniumBASE is installed, which can be done with pip install seleniumbase:
seleniumbase convert NodeGoat_SignIn.py
Then, we may execute the command with the proxy 127.0.0.1:8090: The previous command will generate NodeGoat_SignIn_SB.py:
pytest "NodeGoat_SignIn_SB.py" --proxy=127.0.0.1:8090
Read now
Unlock full access