New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simulating user gesture during script evaluation (script.evaluate
, script.callFunction
)
#359
Comments
script.evaluate
, script.callFunction
)
Hmm, so I don't know off the top of my head how well this approach works cross browser. It might be fine, but we'd need to discuss. FWIW in web-platform-tests we work around this using |
Perhaps we could have a way for BiDi to set the sticky activation and transient activation state, either as its own API, or just in the scope of a single script evaluation? |
Puppeteer provides the ability to evaluate JavaScript while emulating the user action. In the following test, the expected result is true although there was no explicit user action to trigger the execution of the script:
it looks like WebDriver BiDi does not offer this capability yet but it probably should be added. In CDP, the userGesture flag is responsible for this feature: https://chromedevtools.github.io/devtools-protocol/tot/Runtime/#method-evaluate
The text was updated successfully, but these errors were encountered: