Package io.fluentlenium.core.navigation
Interface NavigationControl
- All Known Subinterfaces:
FluentControl
,FluentPageControl
,IFluentAdapter
- All Known Implementing Classes:
BaseFluentHook
,BaseHook
,ContainerFluentControl
,DefaultFluentContainer
,FluentAdapter
,FluentControlImpl
,FluentCucumberTest
,FluentDriver
,FluentPage
,FluentStandalone
,FluentStandaloneRunnable
,FluentTest
,FluentTest
,FluentTestNg
,FluentTestNgSpringTest
,FluentTestRunnerAdapter
,FluentWebElement
,IsolatedTest
,WaitHook
public interface NavigationControl
Control interface for navigation.
-
Method Summary
Modifier and TypeMethodDescriptionorg.openqa.selenium.Cookie
return the corresponding cookie given a nameSet<org.openqa.selenium.Cookie>
return the cookies as a setvoid
Open the url page<P extends FluentPage>
PgoTo
(P page) Open the page, using the url defined in the pagevoid
goToInNewTab
(String url) Open the url page in a new tabReturn the source of the pagevoid
switchTo()
Switch to the default elementvoid
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)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)void
Switch to the default elementurl()
Return the url of the page.window()
Exposes methods on browser window
-
Method Details
-
goTo
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:
-
goTo
Open the url page- Parameters:
url
- page URL to visit
-
goToInNewTab
Open the url page in a new tab- Parameters:
url
- the url of the page
-
switchTo
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
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
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
Set<org.openqa.selenium.Cookie> getCookies()return the cookies as a set- Returns:
- set of cookies
-
getCookie
return the corresponding cookie given a name- Parameters:
name
- cookie name- Returns:
- cookie selected by name
-
url
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
-