Skip to content

Commit adb6753

Browse files
barancevTikhomirovSergey
authored andcommitted
Adding swicthToParentFrame to Java API
1 parent d7c31b0 commit adb6753

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/org/openqa/selenium/WebDriver.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,14 @@ interface TargetLocator {
353353
*/
354354
WebDriver frame(WebElement frameElement);
355355

356+
/**
357+
* Change focus to the parent context. If the current context is the top level browsing context,
358+
* the context remains unchanged.
359+
*
360+
* @return This driver focused on the parent frame
361+
*/
362+
WebDriver parentFrame();
363+
356364
/**
357365
* Switch the focus of future commands for this driver to the window with the given name/handle.
358366
*

0 commit comments

Comments
 (0)