@ParametersAreNonnullByDefault
public class SelenideTargetLocator
extends java.lang.Object
implements org.openqa.selenium.WebDriver.TargetLocator
| Constructor and Description |
|---|
SelenideTargetLocator(Driver driver) |
| Modifier and Type | Method and Description |
|---|---|
org.openqa.selenium.WebElement |
activeElement() |
org.openqa.selenium.Alert |
alert() |
org.openqa.selenium.WebDriver |
defaultContent() |
org.openqa.selenium.WebDriver |
frame(int index) |
org.openqa.selenium.WebDriver |
frame(java.lang.String nameOrId) |
org.openqa.selenium.WebDriver |
frame(org.openqa.selenium.WebElement frameElement) |
void |
innerFrame(java.lang.String firstFrame,
java.lang.String... otherFrames)
Switch to the inner frame (last child frame in given sequence).
|
org.openqa.selenium.WebDriver |
parentFrame() |
org.openqa.selenium.WebDriver |
window(int index)
Switch to window/tab by index
NB! Order of windows/tabs can be different in different browsers, see Selenide tests.
|
org.openqa.selenium.WebDriver |
window(int index,
java.time.Duration duration)
Switch to window/tab by index with a configurable timeout
NB! Order of windows/tabs can be different in different browsers, see Selenide tests.
|
org.openqa.selenium.WebDriver |
window(java.lang.String nameOrHandleOrTitle)
Switch to window/tab by name/handle/title
|
org.openqa.selenium.WebDriver |
window(java.lang.String nameOrHandleOrTitle,
java.time.Duration duration)
Switch to window/tab by name/handle/title with a configurable timeout
|
public SelenideTargetLocator(Driver driver)
@Nonnull public org.openqa.selenium.WebDriver frame(int index)
frame in interface org.openqa.selenium.WebDriver.TargetLocator@Nonnull public org.openqa.selenium.WebDriver frame(java.lang.String nameOrId)
frame in interface org.openqa.selenium.WebDriver.TargetLocator@Nonnull public org.openqa.selenium.WebDriver frame(org.openqa.selenium.WebElement frameElement)
frame in interface org.openqa.selenium.WebDriver.TargetLocator@Nonnull public org.openqa.selenium.WebDriver parentFrame()
parentFrame in interface org.openqa.selenium.WebDriver.TargetLocator@Nonnull public org.openqa.selenium.WebDriver defaultContent()
defaultContent in interface org.openqa.selenium.WebDriver.TargetLocator@Nonnull public org.openqa.selenium.WebElement activeElement()
activeElement in interface org.openqa.selenium.WebDriver.TargetLocator@Nonnull public org.openqa.selenium.Alert alert()
alert in interface org.openqa.selenium.WebDriver.TargetLocatorpublic void innerFrame(java.lang.String firstFrame,
java.lang.String... otherFrames)
This method
@Nonnull public org.openqa.selenium.WebDriver window(int index)
index - index of window (0-based)@Nonnull
public org.openqa.selenium.WebDriver window(int index,
java.time.Duration duration)
index - index of window (0-based)duration - the timeout duration. It overrides default Config.timeout()@Nonnull public org.openqa.selenium.WebDriver window(java.lang.String nameOrHandleOrTitle)
window in interface org.openqa.selenium.WebDriver.TargetLocatornameOrHandleOrTitle - name or handle or title of window/tab@Nonnull
public org.openqa.selenium.WebDriver window(java.lang.String nameOrHandleOrTitle,
java.time.Duration duration)
nameOrHandleOrTitle - name or handle or title of window/tabduration - the timeout duration. It overrides default Config.timeout()