hero icon indicating copy to clipboard operation
hero copied to clipboard

Handle Permission Prompts (edited title)

Open Baker68 opened this issue 4 years ago • 4 comments

When this modal appears the script execution is stopped, it does not execute your next action. I've encountered this issues on Amazon & Google. Is there a way to detect and interact with permission, to click on Block or Allow ?

Baker68 avatar Jan 12 '22 08:01 Baker68

We might need to add that in. Can you not use the waitForDialog to see those?

blakebyrnes avatar Jan 12 '22 15:01 blakebyrnes

@blakebyrnes , I can't find the waitForDialog method. However I did managed to "skip" this issue by using the geolocation param :

const browser = new Agent({
      showReplay: false,
      humanEmulatorId: 'basic',
      geolocation: { latitude: 10, longitude: 10 },
    });

So if anyone encountered this issue before, this is the way to go, at least for now.

Baker68 avatar Jan 12 '22 18:01 Baker68

@Baker68, sorry, I meant tab.on('dialog') and then dismissing when it comes up. I didn't check if it gets triggered or not. We likely need to add something. Thanks for the workaround in the interim!

blakebyrnes avatar Jan 18 '22 00:01 blakebyrnes

Enhancement here is to enable a way to either specific "deny" for geolocation, or specify broader permissions on Agent boot up.

blakebyrnes avatar Jan 28 '22 14:01 blakebyrnes