Skip to content

Commit ae95e8b

Browse files
committed
Improve method reliability
1 parent 2a333c5 commit ae95e8b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3102,8 +3102,7 @@ def set_content_to_parent_frame(self):
31023102

31033103
def open_new_window(self, switch_to=True):
31043104
"""Opens a new browser tab/window and switches to it by default."""
3105-
self.__check_scope()
3106-
self.__check_browser() # Current window must exist to open a new one
3105+
self.wait_for_ready_state_complete()
31073106
self.driver.execute_script("window.open('');")
31083107
time.sleep(0.01)
31093108
if switch_to:

0 commit comments

Comments
 (0)