public interface NavigationControl
| Modifier and Type | Method and Description |
|---|---|
org.openqa.selenium.Cookie |
getCookie(String name)
return the corresponding cookie given a name
|
Set<org.openqa.selenium.Cookie> |
getCookies()
return the cookies as a set
|
<P extends FluentPage> |
goTo(P page)
Open the page, using the url defined in the page
|
void |
goTo(String url)
Open the url page
|
void |
goToInNewTab(String url)
Open the url page in a new tab
|
String |
pageSource()
Return the source of the page
|
void |
switchTo()
Switch to the default element
|
void |
switchTo(FluentList<? extends FluentWebElement> elements)
Switch to the first selected Element (if element is null or not an iframe, or haven't an id then
switch to the default)
|
void |
switchTo(FluentWebElement element)
Switch to the selected Element (if element is null or not an iframe, or haven't an id then
switch to the default)
|
void |
switchToDefault()
Switch to the default element
|
String |
url()
Return the url of the page.
|
WindowAction |
window()
Exposes methods on browser window
|
<P extends FluentPage> P goTo(P page)
P - Type of FluentPagepage - page to openFluentPage.getUrl()void goTo(String url)
url - page URL to visitvoid goToInNewTab(String url)
url - the url of the page tovoid switchTo(FluentList<? extends FluentWebElement> elements)
elements - fluent web elementvoid switchTo(FluentWebElement element)
element - fluent web elementvoid switchTo()
void switchToDefault()
String pageSource()
WindowAction window()
Set<org.openqa.selenium.Cookie> getCookies()
org.openqa.selenium.Cookie getCookie(String name)
name - cookie nameString url()
Copyright © 2016 FluentLenium. All Rights Reserved.