Skip to content

Commit

Permalink
Small fix when selenium isn't available
Browse files Browse the repository at this point in the history
  • Loading branch information
tdorssers committed Apr 18, 2022
1 parent e88ec08 commit faf5c1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ def __init__(self, **kwargs):
self.browser = IntVar(0)
web_menu.add_radiobutton(label='Chrome', value=0, variable=self.browser)
web_menu.add_radiobutton(label='Opera', value=1, variable=self.browser)
if hasattr(webdriver.edge, 'options'):
if webdriver and hasattr(webdriver.edge, 'options'):
web_menu.add_radiobutton(label='Edge', value=2, variable=self.browser)
self.selenium = BooleanVar()
opt_menu.add_checkbutton(label='Use selenium', variable=self.selenium,
Expand Down

0 comments on commit faf5c1c

Please sign in to comment.