Adds a function to wait for the script to execute since in case of using content the promises resolves as soon as the content is injected, there might be a race condition between the execution of the content and the execution of page.evaluate
It's rare as the difference is very rare and was only able to reproduce it 2 times out of 20 executions.
Adds a function to wait for the script to execute since in case of using
content
the promises resolves as soon as the content is injected, there might be a race condition between the execution of the content and the execution ofpage.evaluate
It's rare as the difference is very rare and was only able to reproduce it 2 times out of 20 executions.
Closes #180
References
https://playwright.dev/docs/api/class-page#page-add-script-tag