|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JavascriptExecutor
Indicates that a driver can execute Javascript, providing access to the mechanism to do so.
| Method Summary | |
|---|---|
java.lang.Object |
executeScript(java.lang.String script,
java.lang.Object... args)
Execute javascript in the context of the currently selected frame or window. |
boolean |
isJavascriptEnabled()
It's not enough to simply support javascript, it also needs to be enabled too. |
| Method Detail |
|---|
java.lang.Object executeScript(java.lang.String script,
java.lang.Object... args)
Arguments must be a number, a boolean, a String, WebElement, or a List of any combination of the above. An exception will be thrown if the arguments do not meet these criteria. The arguments will be made available to the javascript via the "arguments" magic variable, as if the function were called via "Function.apply"
script - The javascript to executeargs - The arguments to the script. May be empty
boolean isJavascriptEnabled()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||