Advertisement
j0h

working seelenium.py

j0h
Feb 9th, 2024
1,035
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.60 KB | None | 0 0
  1. #!/usr/bin/python3
  2. # Gecko drivers https://github.com/mozilla/geckodriver/releases
  3. #This one worked
  4. from selenium import webdriver
  5. from selenium.webdriver.chrome.service import Service
  6. from selenium.webdriver.common.keys import Keys
  7. from selenium.webdriver.support.ui import Select
  8. from selenium import webdriver
  9.  
  10. options = webdriver.FirefoxOptions()
  11. #options.headless = False  # Set to False if you'd like to see the browser
  12. service = Service(executable_path="/usr/local/bin/geckodriver")
  13. driver = webdriver.Firefox(service=service, options=options)
  14.  
  15. driver.get("https://www.bangormakerspace.org/")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement