-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[Question] How do i block the location pop-up #18964
Comments
Also, here is a guide for geolocation. |
This will not block the geolocation. Is there a way I can block the location from playwright |
@harshith-aimyth Oh, sorry, I misunderstood. So you'd like not to |
Is it possible to deny this prompt at the context level by passing this: |
@jameskip test.use({ launchOptions: { args: ['--deny-permission-prompts'] } });
test('no prompts', async ({ page }) => {
}); Alternatively, just specify it once in the config to disable all prompts in all tests: export default {
projects: [
{
name: 'chromium',
use: {
..devices['Desktop Chromium'],
launchOptions: { args: ['--deny-permission-prompts'] },
},
}
],
}; |
Hi, any news about Block function for geolocation? I was also looking on how to block it but seeing here, this option is still not supported or wasn't? :) |
Why was this issue closed?Thank you for your involvement. This issue was closed due to limited engagement (upvotes/activity), lack of recent activity, and insufficient actionability. To maintain a manageable database, we prioritize issues based on these factors. If you disagree with this closure, please open a new issue and reference this one. More support or clarity on its necessity may prompt a review. Your understanding and cooperation are appreciated. |
Hi,
I want to block the location popup in my test function in playwright how do I do that?
The text was updated successfully, but these errors were encountered: