public interface Navigator
Modifier and Type | Method and Description |
---|---|
default Session |
back()
Returns the window to the previous item in the history.
|
default boolean |
clearCache()
Clears browser cache.
|
default boolean |
clearCookies()
Clears all browser cookies.
|
default Session |
forward()
Moves the window one document forward in the history
|
default String |
getLocation()
Document URL that
Document points to. |
default String |
getPathname()
Retrieves
Location.pathname property. |
default Map<String,Object> |
getQueryString()
Gets query string
|
Session |
getThis() |
default String |
getTitle()
Gets the title of the document.
|
default boolean |
isDomReady()
Gets the state of Document
|
default Session |
reload()
This method reloads the resource from the current URL.
|
default Session |
setUserAgent(String userAgent)
Allows overriding user agent with the given string.
|
default Session |
stop()
This method stops window loading.
|
default Session stop()
default Session back()
default Session forward()
default Session reload()
default Session setUserAgent(String userAgent)
userAgent
- User agent to usedefault String getLocation()
Document
points to.default String getPathname()
Location.pathname
property.default Map<String,Object> getQueryString()
default String getTitle()
default boolean isDomReady()
true
if Document.readyState property is completedefault boolean clearCache()
true
if browser cache cleared.default boolean clearCookies()
true
if browser cookies cleared.Session getThis()
Copyright © 2017 WebFolder OÜ. All rights reserved.