Package io.webfolder.cdp.session
Interface Navigator
- All Known Implementing Classes:
Session
public interface Navigator
-
Method Summary
Modifier and TypeMethodDescriptiondefault Session
back()
Returns the window to the previous item in the history.default boolean
Clears browser cache.default boolean
Clears all browser cookies.default Session
forward()
Moves the window one document forward in the historydefault String
Gets the full HTML contents of the page, including the doctype.default String
Document URL thatDocument
points to.default String
RetrievesLocation.pathname
property.Gets query stringgetThis()
default String
getTitle()
Gets the title of the document.default boolean
Gets the state of Documentdefault 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.
-
Method Details
-
stop
This method stops window loading.- Returns:
- this
-
back
Returns the window to the previous item in the history.- Returns:
- this
-
forward
Moves the window one document forward in the history- Returns:
- this
-
reload
This method reloads the resource from the current URL.- Returns:
- this
-
setUserAgent
Allows overriding user agent with the given string.- Parameters:
userAgent
- User agent to use- Returns:
- this
-
getLocation
Document URL thatDocument
points to.- Returns:
- document location
-
getPathname
RetrievesLocation.pathname
property.- Returns:
- an initial / followed by the path of the URL
-
getQueryString
Gets query string- Returns:
- key value pair
-
getContent
Gets the full HTML contents of the page, including the doctype.- Returns:
- string content of the document
-
getTitle
Gets the title of the document.- Returns:
- string containing the document's title
-
isDomReady
default boolean isDomReady()Gets the state of Document- Returns:
true
if Document.readyState property is complete
-
clearCache
default boolean clearCache()Clears browser cache.- Returns:
true
if browser cache cleared.
-
clearCookies
default boolean clearCookies()Clears all browser cookies.- Returns:
true
if browser cookies cleared.
-
getThis
Session getThis()
-