|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IEcmaScriptDebugger
| Method Summary | |
|---|---|
void |
addRuntime(EsdbgProtos.RuntimeInfo info)
Adds a runtime to the list of runtimes maintained in the service (STP/1 only) |
String |
callFunctionOnObject(String using,
int objectId)
The script to be executed on/using an object |
Object |
callFunctionOnObject(String using,
int objectId,
boolean responseExpected)
|
void |
changeRuntime(int index)
Changes the frame by index |
void |
changeRuntime(String frameName)
Changes the frame by frame name address nested frames by dot (first.second) |
void |
cleanUpRuntimes()
Cleanup runtimes with the active window id |
void |
cleanUpRuntimes(int windowId)
Cleanup possible dead/suspended runtimes on runtime-started or window-closed |
List<Integer> |
examineObjects(Integer id)
|
Object |
examineScriptResult(Integer id)
|
String |
executeJavascript(String using)
Execute a script and wait for response |
String |
executeJavascript(String using,
boolean responseExpected)
Execute a script, this method allows fine tuning of responses, we are not interested in return value in some injections |
String |
executeJavascript(String using,
Integer windowId)
|
Object |
executeScript(String using,
boolean responseExpected)
Executes a script and returns the response (based on responseExpected) |
Integer |
executeScriptOnObject(String using,
int objectId)
|
Integer |
getObject(String using)
Gets the object id using a script |
int |
getRuntimeId()
|
void |
init()
Initialize the debugger, set the configuration to NOT stop on error, exception, script or abort Create all runtimes and find a suitable runtime for injection (Currently has a workaround or 'return 1;' for GOGI dialog at opera:debug) |
List<String> |
listFramePaths()
Lists the frame paths of available runtimes |
void |
readyStateChanged(EcmascriptProtos.ReadyStateChange change)
Triggered on the ecmascript service when the state of a runtime changes |
void |
releaseObject(int objectId)
Releases a specific object |
void |
releaseObjects()
Makes objects available to gc, this doesn't free the objects immediately |
void |
removeRuntime(int runtimeId)
Removes a runtime from the list, doesnt get called often due to runtime-stopped being sent late (runtimes get suspended) |
void |
resetFramePath()
|
void |
resetRuntimesList()
Resets the list of runtimes and fetches a fresh list from Opera, this can be used to recover in cases where runtimes go out of sync |
Object |
scriptExecutor(String script,
Object... params)
Executes the given javascript via eval call |
void |
setDriver(OperaDriver driver)
Set the driver this service belongs to. |
void |
setRuntime(EsdbgProtos.RuntimeInfo runtime)
Sets the runtime to be used in injection required for event handler (STP/1 only) |
boolean |
updateRuntime()
Finds a valid runtime and updates the runtime reference (active runtime) |
| Method Detail |
|---|
void setDriver(OperaDriver driver)
int getRuntimeId()
void setRuntime(EsdbgProtos.RuntimeInfo runtime)
void removeRuntime(int runtimeId)
void addRuntime(EsdbgProtos.RuntimeInfo info)
void init()
Object scriptExecutor(String script,
Object... params)
script - The script to be executed on hostparams - Array of params, can be string, long or web element(s)String executeJavascript(String using)
using - script to execute
String executeJavascript(String using,
boolean responseExpected)
using - script to executeresponseExpected - if true parse the response
Object executeScript(String using,
boolean responseExpected)
using - The script to be injectedresponseExpected - The flag to enable/disable parsing response
null otherwiseInteger getObject(String using)
using - the script to find the object
String callFunctionOnObject(String using,
int objectId)
using - Script with reference to the object "locator"objectId - The object to be used for injection
Object callFunctionOnObject(String using,
int objectId,
boolean responseExpected)
Integer executeScriptOnObject(String using,
int objectId)
void changeRuntime(int index)
void changeRuntime(String frameName)
void cleanUpRuntimes(int windowId)
void cleanUpRuntimes()
List<Integer> examineObjects(Integer id)
List<String> listFramePaths()
List of String framepathsvoid releaseObjects()
boolean updateRuntime()
void resetRuntimesList()
void readyStateChanged(EcmascriptProtos.ReadyStateChange change)
change - EcmascriptProtos.ReadyStateChange object with runtime infovoid releaseObject(int objectId)
objectId - Id of the object to be releasedvoid resetFramePath()
String executeJavascript(String using,
Integer windowId)
Object examineScriptResult(Integer id)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||