Rayrun
← Back to Discord Forum

Disabling geolaction with "---deny-permision-prompts"

test.only('should continue to fill in the user details for the third step', async ({ page }) => {

const browser=awaitchromium.launch({ args: ['--deny-permission-prompts'] });

awaitpage.locator('button#submit-signup').click();

awaitpage.fill('input#promo-code', 'TEST');

awaitpage.locator('player-button#submit-promo-code').click(); awaitpage.waitForLoadState('load');

constcurrentUrl=page.url();

awaitpage.fill('input#ssn-digits', '7777');

awaitpage.locator('#next-button-step3').getByRole('button', { name:'Next' }).click(); expect(currentUrl).toContain('/sign-up');

awaitpage.getByLabel('Address', { exact:true }).fill('1234 test lo');

awaitpage.getByRole('button', { name:'Add Address Manually' }).click({ force:true }); awaitpage.getByLabel('Address line 2').click(); awaitpage.getByLabel('City').click(); awaitpage.getByLabel('City').fill('vienns'); awaitpage.getByLabel('State').selectOption('AL'); awaitpage.getByLabel('Zip Code').click(); awaitpage.getByLabel('Zip Code').fill('00001');

awaitpage.locator('.wrapper > .selected').click();

awaitpage.getByText('Austria').click(); awaitpage.locator('#phone-number-input').click(); awaitpage.locator('#phone-number-input').fill('6604999589'); awaitpage.getByRole('button', { name:'Create Account' }).click(); awaitpage.goto('https://localhost:3002/login.html');

awaitbrowser.close();

});

Hi I am having issues with geolocation, I have tried to disbale prompts as per the some suggestions and it still seems to popup, what am I missing?

This thread is trying to answer question "Why are geolocation prompts still appearing despite trying to disable them with '--deny-permission-prompts'?"

3 replies
tphillips8117

You might need to enable the permission to have the prompt disappear?

tphillips8117

not sure

Related Discord Threads

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].