Package org.fluentlenium.core.navigation
Interface NavigationControl
-
- All Known Subinterfaces:
FluentControl,FluentPageControl
- All Known Implementing Classes:
BaseFluentHook,BaseHook,ContainerFluentControl,DefaultFluentContainer,FluentAdapter,FluentControlImpl,FluentDriver,FluentPage,FluentStandalone,FluentStandaloneRunnable,FluentTestRunnerAdapter,FluentWebElement,IsolatedTest,WaitHook
public interface NavigationControlControl interface for navigation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.openqa.selenium.CookiegetCookie(java.lang.String name)return the corresponding cookie given a namejava.util.Set<org.openqa.selenium.Cookie>getCookies()return the cookies as a setvoidgoTo(java.lang.String url)Open the url page<P extends FluentPage>
PgoTo(P page)Open the page, using the url defined in the pagevoidgoToInNewTab(java.lang.String url)Open the url page in a new tabjava.lang.StringpageSource()Return the source of the pagevoidswitchTo()Switch to the default elementvoidswitchTo(FluentList<? extends FluentWebElement> elements)Switch to the first selected Element (if element is null or not an iframe, or doesn't have an id then switch to the default)voidswitchTo(FluentWebElement element)Switch to the selected Element (if element is null or not an iframe, or doesn't have an id then switch to the default)voidswitchToDefault()Switch to the default elementjava.lang.Stringurl()Return the url of the page.WindowActionwindow()Exposes methods on browser window
-
-
-
Method Detail
-
goTo
<P extends FluentPage> P goTo(P page)
Open the page, using the url defined in the page- Type Parameters:
P- Type of FluentPage- Parameters:
page- page to open- Returns:
- Opened page.
- See Also:
FluentPage.getUrl()
-
goTo
void goTo(java.lang.String url)
Open the url page- Parameters:
url- page URL to visit
-
goToInNewTab
void goToInNewTab(java.lang.String url)
Open the url page in a new tab- Parameters:
url- the url of the page
-
switchTo
void switchTo(FluentList<? extends FluentWebElement> elements)
Switch to the first selected Element (if element is null or not an iframe, or doesn't have an id then switch to the default)- Parameters:
elements- fluent list of fluent web elements
-
switchTo
void switchTo(FluentWebElement element)
Switch to the selected Element (if element is null or not an iframe, or doesn't have an id then switch to the default)- Parameters:
element- fluent web element to switch to
-
switchTo
void switchTo()
Switch to the default element
-
switchToDefault
void switchToDefault()
Switch to the default element
-
pageSource
java.lang.String pageSource()
Return the source of the page- Returns:
- source of the page under test
-
window
WindowAction window()
Exposes methods on browser window- Returns:
- Window actions
-
getCookies
java.util.Set<org.openqa.selenium.Cookie> getCookies()
return the cookies as a set- Returns:
- set of cookies
-
getCookie
org.openqa.selenium.Cookie getCookie(java.lang.String name)
return the corresponding cookie given a name- Parameters:
name- cookie name- Returns:
- cookie selected by name
-
url
java.lang.String url()
Return the url of the page. If a base url is provided, the current url will be relative to that base url.- Returns:
- current URL
-
-