Skip to content

Commit 7e313b6

Browse files
fixed bidi conditional bug
1 parent 29d7cce commit 7e313b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

py/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ def options(self):
167167
self._options.add_argument("-headless")
168168

169169
if self.bidi:
170+
if not self._options:
171+
self._options = getattr(webdriver, f"{self._driver_class}Options")()
170172
self._options.web_socket_url = True
171173
self._options.unhandled_prompt_behavior = "ignore"
172174

0 commit comments

Comments
 (0)