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

Support test_driver.set_permission() inside .any.js (for workers) #197

Open
saschanaz opened this issue May 25, 2024 · 0 comments
Open

Support test_driver.set_permission() inside .any.js (for workers) #197

saschanaz opened this issue May 25, 2024 · 0 comments

Comments

@saschanaz
Copy link
Member

test_driver is only designed to work on the window context. Which is fine as many webdriver commands like moving pointers only makes sense there, but set_permission is often required also for workers to enable certain features there, e.g. service worker-specific showNotification() behind notification permission.

Perhaps we can:

  • Provide some way to tunnel the test_driver requests to the main thread as service_worker_test() does?
  • Or provide a way to run a script on the main window before starting the tests in the worker context?
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