File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -2590,6 +2590,9 @@ def open_new_window(self, switch_to=True):
2590
2590
self .wait_for_ready_state_complete ()
2591
2591
2592
2592
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 """
2593
2596
self .__check_scope ()
2594
2597
if not timeout :
2595
2598
timeout = settings .SMALL_TIMEOUT
@@ -2916,7 +2919,8 @@ def get_new_driver(
2916
2919
return new_driver
2917
2920
2918
2921
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.
2920
2924
You may need this if using self.get_new_driver() in your code."""
2921
2925
self .__check_scope ()
2922
2926
self .driver = driver
You can’t perform that action at this time.
0 commit comments