|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.pageobjects.util.JavascriptRunner
@Singleton public class JavascriptRunner
Class that can be used to execute JS on the browser while running WebDriver tests. It also contains methods to run useful common JS on the browser.
Constructor Summary | |
---|---|
JavascriptRunner()
|
Method Summary | |
---|---|
void |
clearWebSudo()
Drop the user's Websudo authentication session. |
void |
destroyAllXsrfTokens()
Wipe out all the XSRF tokens on the page. |
void |
execute(String script)
|
void |
removeWorkflowDesignerUnloadHooks()
The workflow designer adds unload hooks that can stop people leaving the page while it is doing something. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavascriptRunner()
Method Detail |
---|
public void destroyAllXsrfTokens()
public void clearWebSudo()
public void removeWorkflowDesignerUnloadHooks()
public void execute(String script)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |