Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Firefox == 58.0.2
- selenium == 3.9.0
- geckodriver == 0.19.1
- Python == 3.6.4
- Debian based Linux (64bit)
- export PATH=$PATH:/usr/bin/firefox
- from selenium import webdriver
- from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
- cap = DesiredCapabilities().FIREFOX
- cap["marionette"] = False
- browser = webdriver.Firefox(capabilities=cap, executable_path="/usr/local/bin")
- link = browser.get('https://duckduckgo.com')
- web2 = link.find_element_by_class_name('logo_homepage__tt').text
- print(web2)
Add Comment
Please, Sign In to add comment