Sample selenium webdriver script to work with web browsers in python script
Pre-requisites:
- Install an IDE (Integrated Development Environment) {Select one from Full fledged IDE or light-weight Text based IDEs}
*. Going with Pycharm Community - Available here
https://www.jetbrains.com/pycharm/download/download-thanks.html?platform=windows&code=PCC
- Install Python software code modules
*. Getting the file from
https://www.python.org/ftp/python/3.10.2/python-3.10.2-amd64.exe
- Install/Import selenium language specific machine files
- Using
python -m pip install selenium
- Using
- Browser web-drivers
- Chrome
*. Getting the file from
https://chromedriver.storage.googleapis.com/98.0.4758.102/chromedriver_win32.zip
- Microsoft Edge
*. Getting the file from
https://msedgedriver.azureedge.net/98.0.1108.56/edgedriver_win64.zip
- Firefox
*. Getting the file from
https://github.com/mozilla/geckodriver/releases/download/v0.30.0/geckodriver-v0.30.0-win64.zip
- Chrome
*. Getting the file from
The scenarios tried are,
- Cross Browser calls
- Basic site actions
- Load site
- Enter value in input field
- Click on an element
File History:
- Added on 21-Feb-2022
- Last Updated on 22-Feb-2022