Quantcast
Channel: Selenium using Python - Geckodriver executable needs to be in PATH - Stack Overflow
Viewing all articles
Browse latest Browse all 38

Answer by Max Malysh for Selenium using Python - Geckodriver executable needs to be in PATH

$
0
0

Consider installing a containerized Firefox:

docker pull selenium/standalone-firefoxdocker run --rm -d -p 5555:4444 --shm-size=2g selenium/standalone-firefox

Connect using webdriver.Remote:

driver = webdriver.Remote('http://localhost:5555/wd/hub', DesiredCapabilities.FIREFOX)driver.set_window_size(1280, 1024)driver.get('https://toolbox.googleapps.com/apps/browserinfo/')driver.save_screenshot('info.png')

Viewing all articles
Browse latest Browse all 38

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>