Skip to main content

Handle Browser Location Permission Prompts

Handle Browser Location Permission Prompts

HowBrowser topermission achieveprompts orcan handleinterrupt Scenario Editor executions. Configure location permission pop-upsbehavior intentionally before the run instead of treating the prompt as an ordinary application dialog.

  • Confirm whether the test requires real, mocked, or blocked location behavior.
  • Use approved browser/profile configuration for the execution environment.
  • Document the expected permission state with the scenario or environment notes.
  • Do not grant browser permissions in AIQ.production

    or shared

    environments without approval.

Troubleshooting

  1. Check
  2. Stop test designer

Navigate to "\TestDesigner\NetworkProxy\config\Chrome" in your installation.

Take backup ofwhether the "AllowDownloads.json"prompt fileis byfrom renamingthe it.

browser, the operating system, or the application.Confirm the Test Node browser profile matches the intended permission state.Review

Createoutput and screenshots when a newprompt versionblocks ofexecution.

Prefer "AllowDownloads.json"environment fileconfiguration inover "\TestDesigner\NetworkProxy\config\Chrome"fragile usingclick theautomation followingon code:browser prompts.

AllowDownloads.json
{
                            "credentials_enable_service": false,
                            "profile": {
                            "managed_default_content_settings":{
                            "geolocation": 1
                            },
                            "default_content_setting_values": {
                            "automatic_downloads": 1,
                            "geolocation": 1
                            },
                            "default_content_settings":{
                            "popups":0
                            },
                            "cookie_controls_mode": 0
                            },
                            "download": {
                            "directory_upgrade": true
                            },
                            "partition": {
                            "default_zoom_level": {
                            "x": 0
                            }
                            },
                            "devtools": {
                            "preferences": {
                            "jsSourceMapsEnabled": "false"
                            }
                            }
                        }

Start test designer

Login to AIQ and launch your script in playback mode in Chrome.


Last updated: JuneSeptember 26,9, 20232026

If you have any feedback on this topic, please contact us at documentation@appvance.ai