-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Run JavaScript before change detection
dgtlmoon edited this page Jul 10, 2022
·
31 revisions
You can run JavaScript before performing change detection, this is handy for filling in fields, clicking buttons and other actions
This is best used with the Chrome Playwright driver.
Example:
Fill in the search box and click submit at http://www.quotationspage.com/random.php
( Add this shared watch https://changedetection.io/share/qvQ8NFFxQsMa )
document.querySelector("input[name=homesearch]").value="cause and effect";
document.querySelector("input[name=startsearch]").click();