public class GebDetectivePage
extends geb.Page
| Constructor and Description |
|---|
GebDetectivePage() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterLoad(geb.Page previousPage)
Lifecycle method called when the page is connected to the browser.
|
void |
beforeLoad()
Lifecycle method called when the page about to load, driver has been initialized.
|
protected org.apache.http.client.CookieStore |
getCookieStore() |
String |
getOriginPageUrl()
Return the page url which defined in url static content
|
String |
getPageUrl()
Get page url without the query pages as we are going to replace it with our parameters
|
protected Parameters |
getParametersInner()
Get parameters from detective framework
|
void |
onLoad(geb.Page previousPage) |
protected void |
putParameter(String key,
Object value)
When a page fully loaded (at check returns true),
this method can be invoked, you can read anything from the page
and write into detective parameter system
|
void |
readCookies()
Read cookies from Detective parameter system, the cookies usually created by HttpClientTask.
|
void |
shareCookies()
Share the cookies with HttpClientTask
|
protected static Map<String,String> |
splitQuery(String url) |
void |
to(Map params,
geb.url.UrlFragment fragment,
Object[] args) |
$, $, $, $, $, $, $, $, $, $, $, $, $, $, $, $, $, $, $, $, contains, contains, containsWord, containsWord, convertToPath, download, download, download, downloadBytes, downloadBytes, downloadBytes, downloadBytes, downloadBytes, downloadBytes, downloadContent, downloadContent, downloadContent, downloadContent, downloadContent, downloadContent, downloadStream, downloadStream, downloadStream, downloadStream, downloadStream, downloadStream, downloadText, downloadText, downloadText, downloadText, downloadText, downloadText, endsWith, endsWith, find, find, find, find, find, find, find, find, find, find, find, find, find, find, find, find, find, find, getAt, getAtCheckWaiting, getAtVerificationResult, getAtVerificationResult, getBrowser, getContent, getDriver, getFragment, getJs, getNavigator, getOwner, getPageFragment, getPageLevelAtCheckWaiting, getPageUrl, getTitle, getUrl, iContains, iContains, iContainsWord, iContainsWord, iEndsWith, iEndsWith, init, iNotContains, iNotContains, iNotContainsWord, iNotContainsWord, iNotEndsWith, iNotEndsWith, iNotStartsWith, iNotStartsWith, interact, iStartsWith, iStartsWith, methodMissing, module, module, notContains, notContains, notContainsWord, notContainsWord, notEndsWith, notEndsWith, notStartsWith, notStartsWith, onUnload, propertyMissing, propertyMissing, setAt, setAtCheckWaiting, setFragment, setUrl, startsWith, startsWith, to, toString, uninitializedException, verifyAt, verifyAtSafely, verifyAtSafely, waitFor, waitFor, waitFor, waitFor, waitFor, waitFor, waitFor, waitFor, withAlert, withAlert, withConfirm, withConfirm, withConfirm, withConfirm, withFrame, withFrame, withFrame, withFrame, withFrame, withFrame, withFrame, withNoAlert, withNoConfirmpublic String getPageUrl()
getPageUrl in class geb.Pagepublic String getOriginPageUrl()
public void onLoad(geb.Page previousPage)
onLoad in class geb.Pagepublic void afterLoad(geb.Page previousPage)
previousPage - The page that was active before this onepublic void beforeLoad()
public void shareCookies()
public void readCookies()
protected org.apache.http.client.CookieStore getCookieStore()
public void to(Map params, geb.url.UrlFragment fragment, Object[] args)
to in class geb.Pageprotected void putParameter(String key, Object value)
protected Parameters getParametersInner()
protected static Map<String,String> splitQuery(String url) throws UnsupportedEncodingException
UnsupportedEncodingExceptionCopyright © 2019. All rights reserved.