1# test_geckodriver.py
2# https://github.com/mozilla/geckodriver/releases
3# geckodriver-v0.28.0-win64.zip
4
5from selenium import webdriver
6
7while True:
8 try:
9 browser = webdriver.Firefox(executable_path = r'D:/Automation/geckodriver.exe')
10 except:
11 print('Open browser error: An error occured, retrying...')
12 continue
13 else:
14 print('Success! ;-)')
15 break
16