“Browser = WebDriver.Firefox () Kesalahan” Kode Jawaban

Browser = WebDriver.Firefox () Kesalahan

browser = webdriver.Firefox(executable_path='enter_path_here')
Elisencode

Browser = WebDriver.Firefox () Kesalahan

# 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  
Elisencode

Jawaban yang mirip dengan “Browser = WebDriver.Firefox () Kesalahan”

Pertanyaan yang mirip dengan “Browser = WebDriver.Firefox () Kesalahan”

Lebih banyak jawaban terkait untuk “Browser = WebDriver.Firefox () Kesalahan” di Python

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya