-
Notifications
You must be signed in to change notification settings - Fork 144
Open
Description
Use Case:
Perform some action in the iframe and then some action on main document
I referred the documentation https://docs.webpagetest.org/scripting/#setexecutioncontext for switching the execution context and followed the example code
Script:
navigate https://codepen.io/juno_okyo/pen/yOjaEZ
setExecutionContext origin=https://cdpn.io
execAndWait document.getElementById('name-input').value = 'Bob';
execAndWait document.querySelector('button').click();
sleep 2
setExecutionContext
clickAndWait data-test-id=login-button
sleep 10
Expected Action:
- Set execution context to of iframe
- Type Bob in the input field
- Click 'OK' button
- Set execution context to main document
- Click on 'Login' button in the header
Error Faced
No action captured after resetting the execution context. Results can be referred from https://www.webpagetest.org/result/230517_AiDcJ3_9W6/
Step 4 is not captured at all and there is no data
Metadata
Metadata
Assignees
Labels
No labels