Before you can start performing Python automation testing with Selenium, you would need to:
- Install the latest Python build from the official website. We recommend using the latest version.
- Make sure pip is installed in your system. You can install pip from here.
- Download the latest Selenium Client and its WebDriver bindings from the official website
You would need to execute the below command in your terminal/cmd.
python demo.py
For python3 use
python3 demo.py
Your test results would be displayed in the command-line interface if you are using terminal/cmd.