Skip to content

0. selenium framework automating browsers

overview

https://www.selenium.dev/

selenium is an API and composes of many tools.
automation components : webdriver > driver > browser
- WebDriver : drives a browser natively, as a user would
- driver : library for specific browser / language
(also browser IDE extentions , and other tools )

documentation

https://selenium-python.readthedocs.io/
https://selenium-python.readthedocs.io/getting-started.html#simple-usage [ZOTERO]

install the selenium library

first, check python3 installation

pip install selenium

=> ERROR: pyopenssl 22.0.0 has requirement cryptography>=35.0, but you’ll have cryptography 2.8 which is incompatible.

  • pyopenssl : Python wrapper around the OpenSSL library
  • cryptography : Python cryptography library
    The Python Cryptographic Authority strongly recommends the use of pyca/cryptography where possible.
    For anything other than making a TLS connection you should move to cryptography and drop your pyOpenSSL dependency.

pip install cryptography
=> requirement already satisfied: cryptography in /usr/lib/python3/dist-packages (2.8)
pip3 install --upgrade cryptography

pip install selenium
=> success , echter Defaulting to user installation because normal site-packages is not writeable

=> !! ok met :
sudo pip install selenium