public class ScopeEcmascriptDebugger6 extends ScopeEcmascriptDebugger
activeWindowId, currentFramePath, driver, retries, sleepDuration, windowManagerservicesSERVICE_NAME| Constructor and Description |
|---|
ScopeEcmascriptDebugger6(ScopeServices services) |
| Modifier and Type | Method and Description |
|---|---|
String |
callFunctionOnObject(String using,
int objectId)
The script to be executed on/using an object
|
Object |
callFunctionOnObject(String using,
int objectId,
boolean responseExpected) |
List<Integer> |
examineObjects(Integer id)
Request additional information about an object, such as its prototype or its properties.
|
Object |
examineScriptResult(Integer id)
Recursively iterates through the property hierarchies of underneath the given object and
unwraps the node elements into suitable types.
|
Object |
executeScript(String using,
boolean responseExpected)
Executes a script and returns the response (based on responseExpected)
|
Object |
executeScript(String using,
boolean responseExpected,
int runtimeId) |
Integer |
executeScriptOnObject(String using,
int objectId) |
Integer |
getObject(String using)
Gets the object id using a script
|
Integer |
getObject(String using,
int runtimeId) |
protected Object |
parseEvalReply(Esdbg6Protos.EvalResult result) |
Object |
scriptExecutor(String script,
Object... params)
Executes the given javascript via eval call
|
addRuntime, buildEval, buildVariable, changeRuntime, changeRuntime, cleanUpRuntimes, createAllRuntimes, eval, eval, executeJavascript, findRuntime, findRuntime, getRuntimeId, init, listFramePaths, listRuntimes, parseEvalReply, parseValue, readyStateChanged, releaseObject, releaseObjects, removeRuntime, resetFramePath, resetRuntimesList, setFormElementValue, setRuntime, updateRuntimebuildEvalString, cleanUpRuntimes, executeJavascript, executeJavascript, isNumber, isScriptInjectable, parseNumber, processArgument, recover, resetCounters, setDriverbuildPayload, executeMessage, executeMessage, executeMessage, getServiceName, getServiceVersion, isVersionInRange, sleep, toString, xpathIterator, xpathPointerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcleanUpRuntimes, executeJavascript, executeJavascript, isScriptInjectable, setDrivergetServiceName, getServiceVersionpublic ScopeEcmascriptDebugger6(ScopeServices services)
public Object scriptExecutor(String script, Object... params)
DebuggerscriptExecutor in interface DebuggerscriptExecutor in class ScopeEcmascriptDebuggerscript - the script to be executed on hostparams - array of params, can be string, long or web element(s)public Object executeScript(String using, boolean responseExpected)
DebuggerexecuteScript in interface DebuggerexecuteScript in class ScopeEcmascriptDebuggerusing - the script to be injectedresponseExpected - the flag to enable/disable parsing responsenull otherwisepublic Object executeScript(String using, boolean responseExpected, int runtimeId)
executeScript in class ScopeEcmascriptDebuggerpublic Integer getObject(String using)
DebuggergetObject in interface DebuggergetObject in class ScopeEcmascriptDebuggerusing - the script to find the objectpublic Integer getObject(String using, int runtimeId)
getObject in class ScopeEcmascriptDebuggerpublic String callFunctionOnObject(String using, int objectId)
DebuggercallFunctionOnObject in interface DebuggercallFunctionOnObject in class ScopeEcmascriptDebuggerusing - script with reference to the object "locator"objectId - the object to be used for injectionpublic Object callFunctionOnObject(String using, int objectId, boolean responseExpected)
callFunctionOnObject in interface DebuggercallFunctionOnObject in class ScopeEcmascriptDebuggerpublic Integer executeScriptOnObject(String using, int objectId)
executeScriptOnObject in interface DebuggerexecuteScriptOnObject in class ScopeEcmascriptDebuggerprotected Object parseEvalReply(Esdbg6Protos.EvalResult result)
public List<Integer> examineObjects(Integer id)
DebuggerexamineObjects in interface DebuggerexamineObjects in class ScopeEcmascriptDebuggerid - object ID previously returned from an eval call to the debuggerpublic Object examineScriptResult(Integer id)
DebuggerOperaWebElement's, arrays into
Java List's, hashes into Map's, numbers into Integer's, and
the remaining properties into String's.examineScriptResult in interface DebuggerexamineScriptResult in class ScopeEcmascriptDebuggerid - the object to examine the hierarchy ofCopyright © 2013. All Rights Reserved.