Skip to content

Commit 80abf4d

Browse files
authored
Merge pull request #88 from WPO-Foundation/set-exec-context
fix(scripting): more context to exec context id
2 parents 8bde26e + a99ec74 commit 80abf4d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/scripting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ example: setEventName loadWebmail
551551
<event name> - Name to use for the event about to occur (in resulting log files)
552552
```
553553
#### `setExecutionContext`
554-
Sets the execution context (main document, iframes, etc) for any subsequent `exec` or `execAndWait` commands to run against. It accepts either the origin or ID of the execution context.
554+
Sets the execution context (main document, iframes, etc) for any subsequent `exec` or `execAndWait` commands to run against. It accepts either the origin or ID of the execution context (This is not the DOM id. You can find the ID of the execution context in the JSON results of the test).
555555

556556
For example, if you navigate to a URL and there is an iframe that loads content form `https://cdpn.io`, you could have the script run in the iframe context by using the `setExecutionContext`.
557557

0 commit comments

Comments
 (0)