Skip to content
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 gestures" #225

Open
dreyks opened this issue Sep 18, 2020 · 0 comments
Open

Simulating "user gestures" #225

dreyks opened this issue Sep 18, 2020 · 0 comments

Comments

@dreyks
Copy link

dreyks commented Sep 18, 2020

Hello!

I've got a question that's not strictly related to CDP but maybe you've got any answers for me :)

I'm using CDP for automated testing and when I'm trying to test the window.onbeforeunload functionality I'm facing a problem that chromium blocks the popup dialog because the frame never had a user gesture

Blocked attempt to show a 'beforeunload' confirmation panel for a frame that never had a user gesture since its load. https://www.chromestatus.com/feature/5082396709879808

Do you know of any way how can I work around this? Simulate a user gesture or maybe there's any command-line arg for chrome that will turn this security feature off?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant