Answers for "browser = webdriver.firefox() error"

0

browser = webdriver.firefox() error

browser = webdriver.Firefox(executable_path='enter_path_here')
Posted by: Guest on November-20-2020
0

browser = webdriver.firefox() error

# test_geckodriver.py
# https://github.com/mozilla/geckodriver/releases
# geckodriver-v0.28.0-win64.zip

from selenium import webdriver

while True:
    try:
        browser = webdriver.Firefox(executable_path = r'D:/Automation/geckodriver.exe')
    except:
        print('Open browser error: An error occured, retrying...')
        continue
    else:
        print('Success! ;-)')
        break
Posted by: Guest on November-20-2020

Code answers related to "browser = webdriver.firefox() error"

Python Answers by Framework

Browse Popular Code Answers by Language