Official site
https://selenium.dev/documentation/en/
Test Case
Environment
Download driver file ( Need fit your browser version )
- Chrome : http://chromedriver.storage.googleapis.com/index.html
install driver on mac
mv /Users/dev/Downloads/chromedriver /usr/local/bin
- Allow driver
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-MrgSsxYx-1625368117166)(uploads/9755e72034735981bff9834962f977c6/image.png)]
Install python 3
- https://www.python.org/
Install selenium
pip install selenium
Run python case
python3 Demo.py