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

1
2
3
4
from selenium import webdriver

browser = webdriver.Firefox()  # initialize and open a Firefox browser window.
browser.get('https://alisha.dev/blog/index.html')  # navigate to my blog homepage.

Next steps