Updated Run JavaScript before change detection (markdown)

master
dgtlmoon 2022-07-10 13:36:10 +02:00
rodzic 3a02ba9b90
commit 1abe2db08f
1 zmienionych plików z 6 dodań i 1 usunięć

@ -1,5 +1,9 @@
You can run JavaScript _before_ performing change detection, this is handy for filling in fields, clicking buttons and other actions
Under Watch settings` > `Request` > `Execute JavaScript before change detection`
Available in 0.39.17
This is best used with the Chrome Playwright driver.
## Examples:
@ -11,4 +15,5 @@ At http://www.quotationspage.com/random.php ( or add this shared watch https://c
```
document.querySelector("input[name=homesearch]").value="cause and effect";
document.querySelector("input[name=startsearch]").click();
```
```