Methods in org.openqa.selenium that return WebDriver |
WebDriver |
WebDriver.TargetLocator.defaultContent()
Selects either the first frame on the page, or the main document when a page contains iframes. |
WebDriver |
WebDriver.TargetLocator.frame(int index)
Select a frame by its (zero-based) index. |
WebDriver |
WebDriver.TargetLocator.frame(java.lang.String nameOrId)
Select a frame by its name or ID. |
WebDriver |
WebDriver.TargetLocator.frame(WebElement frameElement)
Select a frame using its previously located WebElement . |
WebDriver |
WebDriver.TargetLocator.window(java.lang.String nameOrHandle)
Switch the focus of future commands for this driver to the window with the given name/handle. |