Skip to content

Commit 9a42cf0

Browse files
committed
Update comments
1 parent d81e62b commit 9a42cf0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2590,6 +2590,9 @@ def open_new_window(self, switch_to=True):
25902590
self.wait_for_ready_state_complete()
25912591

25922592
def switch_to_window(self, window, timeout=None):
2593+
""" Switches control of the browser to the specified window.
2594+
The window can be an integer: 0 -> 1st tab, 1 -> 2nd tab, etc...
2595+
Or it can be a list item from self.driver.window_handles """
25932596
self.__check_scope()
25942597
if not timeout:
25952598
timeout = settings.SMALL_TIMEOUT
@@ -2916,7 +2919,8 @@ def get_new_driver(
29162919
return new_driver
29172920

29182921
def switch_to_driver(self, driver):
2919-
"""Sets self.driver to the specified driver.
2922+
"""Switches control of the browser to the specified driver.
2923+
Also sets the self.driver variable to the specified driver.
29202924
You may need this if using self.get_new_driver() in your code."""
29212925
self.__check_scope()
29222926
self.driver = driver

0 commit comments

Comments
 (0)