How to end the eye-tracking test by the tested website (screen sharing)?
You can add a simple JavaScript code to the website you're testing with the Screen Sharing study so the eye-tracking test ends automatically whenever needed, before the study max time is reached.
This way, the eye-tracking data might get stored in the background, while the participant is still viewing the tested website or filling out a survey in a third-party tool.
The required JavaScript code:
window.opener.postMessage('re-test-end-without-interaction', '*')
NOTE: Add that code in the proper event listener, to finish the test whenever needed.
Examples:
- Eye-tracking test of a live website, that triggers test end without any user interaction.
- An example of a website that triggers eye-tracking test end without any user interaction.