Skip to content

Commit

Permalink
[py] fix tox warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
AutomatedTester committed Nov 22, 2021
1 parent fbc3918 commit d7dfe5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/selenium/webdriver/chromium/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def add_experimental_option(self, name: str, value: Union[str, int, dict, List[s
name: The experimental option name.
value: The option value.
"""
if name.lower() == "w3c" and (value == "false" or value == False):
if name.lower() == "w3c" and (value == "false" or value is False):
warnings.warn(UserWarning("Manipulating `w3c` setting can have unintended consequences."))
self._experimental_options[name] = value

Expand Down

0 comments on commit d7dfe5e

Please sign in to comment.