|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware com.atlassian.jira.webtest.framework.impl.selenium.util.JqueryExecutor
public final class JqueryExecutor
Executes jQuery code in Selenium (given the current page has loaded a JQuery library).
Nested Class Summary | |
---|---|
static class |
JqueryExecutor.JqueryState
|
Field Summary |
---|
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware |
---|
assertThat, client, context, timeouts |
Constructor Summary | |
---|---|
JqueryExecutor(SeleniumContext ctx)
|
Method Summary | |
---|---|
TimedCondition |
canExecute()
Check, if jQuery code can be executed on the current web page. |
String |
checkJquery()
Evaluate Jquery. |
TimedQuery<String> |
execute(String script)
Execute given jQuery script in Selenium, first waiting for the condition that jQuery is defined on the tested page. |
String |
executeNow(String script)
Execute script now without verifying if jQuery is defined in the current test context. |
TimedQuery<String> |
executeSafe(String script)
Execute given jQuery script in Selenium, first waiting for the condition that jQuery is defined on the tested page. |
JqueryExecutor.JqueryState |
jqueryState()
Check JQuery state in the current page. |
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware |
---|
context |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JqueryExecutor(SeleniumContext ctx)
Method Detail |
---|
public TimedCondition canExecute()
true
, if jQuery may be executed at the current page, false
otherwise. If this
method returns false
, calling execute(String)
may result in errorspublic JqueryExecutor.JqueryState jqueryState()
JqueryExecutor.JqueryState
public String checkJquery()
public TimedQuery<String> execute(String script)
script
- pure jQuery script
IllegalStateException
- if this script cannot be executed (jQuery not defined on the page before timeout)public TimedQuery<String> executeSafe(String script)
null
.
script
- pure jQuery script
public String executeNow(String script)
script
- script to execute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |