Skip to content

Commit

Permalink
[py] added truthy check in chromium options instead of identity opera…
Browse files Browse the repository at this point in the history
…tor (#12274)
  • Loading branch information
sandeepsuryaprasad committed Jun 28, 2023
1 parent 1fe0628 commit e822f4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/selenium/webdriver/chromium/options.py
Expand Up @@ -162,7 +162,7 @@ def headless(self, value: bool) -> None:
stacklevel=2,
)
args = {"--headless"}
if value is True:
if value:
self._arguments.extend(args)
else:
self._arguments = list(set(self._arguments) - args)
Expand Down

0 comments on commit e822f4c

Please sign in to comment.