Setting up for Selenium

Install Selenium

  • Open Windows’ Command Prompt (cmd)
    • pip install selenium

WebDriver Directory

  • Create directory anywhere convenient to place ChromeDriver
  • Add the directory to your PATH

By adding a folder containing WebDriver’s binaries to PATH, Selenium will be able to locate the additional binaries (e.g. ChromeDriver) without requiring your test code to manually locate the driver’s location.

Using Selenium

VS Code IDE: If running directly fails, at its Terminal cd to file directory and run file: python <filename>.py

--- :: Skyferia Tech's Related Posts :: ---