@@ -59,12 +59,11 @@ def default_content(self) -> None:
5959 self ._driver .execute (Command .SWITCH_TO_FRAME , {"id" : None })
6060
6161 def frame (self , frame_reference : Union [str , int , WebElement ]) -> None :
62- """Switches focus to the specified frame, by index, name, or
63- webelement.
62+ """Switch focus to the specified frame by index, name, or element.
6463
6564 Args:
66- frame_reference: The name of the window to switch to, an integer representing the index,
67- or a webelement that is an (i)frame to switch to.
65+ frame_reference: The name of the frame to switch to, an integer representing the index,
66+ or a WebElement that is an (i)frame to switch to.
6867
6968 Example:
7069 driver.switch_to.frame("frame_name")
@@ -95,8 +94,9 @@ def new_window(self, type_hint: Optional[str] = None) -> None:
9594 self ._w3c_window (value ["handle" ])
9695
9796 def parent_frame (self ) -> None :
98- """Switches focus to the parent context. If the current context is the
99- top level browsing context, the context remains unchanged.
97+ """Switch focus to the parent browsing context.
98+
99+ If the current context is already the top level browsing context, it remains unchanged.
100100
101101 Example:
102102 driver.switch_to.parent_frame()
0 commit comments