Python Selenium project
   1 min read

Project description

Use selenium to navigate to webpages.

Install selenium on Windows

  • To install selenium, in a command prompt window, run: pip install selenium
  • Download the latest version of the geckodriver.
  • In system environment variables, add the path to the unzipped geckodriver folder in the Path variable.

Python sample code

from selenium import webdriver

browser = webdriver.Firefox()  # initialize and open a Firefox browser window.
browser.get('')  # navigate to my blog homepage.

Next steps