I chose to go with the Firefox Geckodriver for this setup. There is an unofficial Selenium documentation that talks about the different drivers. You will need a webdriver for the web browser you wish to control. While it is not required, it is a very good idea to use a virtual environment to play with Selenium so that you don’t install versions of software that may affect your other projects. Virtual Environmentįor any project I do, I setup a Python Virtual Environment, and you can check out my quick article on setting this up. And I was really impressed on how quick and easy it was to setup and test. I needed to see if I could quickly setup and test how Selenium works, so that I can prepare some tests for the web client of the software package I work with at the office. Library/Frameworks/amework/Versions/3.8/lib/python3.Selenium can be fun to play with, but really best used for website testing. Library/Frameworks/amework/Versions/3.8/lib/python3.8/site-packages/selenium-3.141.0.dist-info/* Sudo pip3 uninstall selenium ~ % sudo pip uninstall seleniumįound existing installation: selenium 3.141.0 Requirement already satisfied: urllib3 in /Library/Frameworks/amework/Versions/3.8/lib/python3.8/site-packages (from selenium) (1.25.10) If executing pip with sudo, you may want sudo's -H flag.ĭownloading 圓-none-any.whl (904 kB) Check the permissions and owner of that directory. WARNING: The directory '/Users/kaudo/Library/Caches/pip' or its parent directory is not owned or is not writable by the current user. 컴퓨터 비밀번호 입력 ~ % sudo pip3 install selenium
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |