Test Script issue: Message "...wants to Access other devices on your local network"

Originally posted by Cain_Li on April 20, 2026

Hello,

I’m using Script Testing in TestComplete for Dynamics 365 (online version) testing.

The script is running with Azure Pipeline in agent VM, but when script is running, Edge will prompt a information from Site Information “View Site Information” icon in the left of Dynamcis 365 URL, and it prompts that "‘xxx.crm.dynamics.com’ wants to “Access other devices on your local network” and under above information, there’s 2 button of “Block” and “Allow”. At this moment, script blocks although it’s running but the Object in Edge cannot capture, so it reports error.

Tips:

  1. I’m using inPrivate Mode for opening edge and entering Dynamics 365 site for the purpose of bypassing the Single-SignOn Policy and directly inputting Test Credential e.g User Name & Password.
  2. Actually Site Permission has been maintained in Local Network Access, and add the site to “Allowed to access other devices on your local network” in Edge.
  3. SmartBear Test Extention is also installed in Edge Extention successfully.

Question:

  1. Related configruation above is fine, why still prompt this information and ask me “Allow” or “Block”
  2. If this prompt information cannot bypass for some reason, how can I use Script to capture this Prompt Page and related object e.g “Allow” or “Block”, thus I can use script to detect them, especially button “Allow” to click, thus script can run smoothly. Now it cannot detect, even if I use Object Spy menu, it’s also not able to detect.

Originally posted by Hassan_Ballan on April 20, 2026

Because you’re running in InPrivate mode, site permissions (like “access local network”) are not persisted, so the prompt will appear every time. Also, this permission dialog is part of the browser UI, not the page DOM, so TestComplete Web license can’t detect or interact with it.

Bottom line:

  • InPrivate mode = permission resets → prompt keeps appearing
  • The prompt is not automatable via standard object recognition unless you have Desktop license probably you could

**Potential Fix:**Try SendKeys Action to the browser if you can can reliably control it by keyboard.

If this resolves your scenario, marking it as the solution helps future readers find it quickly.

Originally posted by Cain_Li on April 21, 2026

But how to use SendKeys Action to capture Permision Dialog?

Originally posted by Hassan_Ballan on April 21, 2026

You won’t be able to capture that permission dialog as an object — Microsoft Edge treats it as part of the browser UI, not the DOM, so TestComplete can’t spy it.

What you can try, though, is using SendKeys to handle it blindly via keyboard input.

In Edge, that dialog usually defaults focus to one of the buttons (often Block), so you can simulate keyboard navigation:

// Make sure Edge window is active
Sys.Browser("edge").Activate();

// Try navigating to "Allow" and confirm
Sys.Browser("edge").Keys("[Tab][Enter]");

Or, if needed, add more tabs depending on which button is focused:

Sys.Browser("edge").Keys("[Tab][Tab][Enter]");

The idea is:

  • Tab → switch between “Block” and “Allow”
  • Enter → confirm the selected option

It’s not perfect (since it depends on focus and timing), but in cases like this where the dialog isn’t accessible, it’s one of the few practical workarounds. You may need to add a short delay before sending keys to ensure the dialog is visible.

If this resolves your scenario, marking it as the solution helps future readers find it quickly.