Forum Discussion

Cain_Li's avatar
Cain_Li
Occasional Visitor
7 hours ago

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

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.

1 Reply

  • Hassan_Ballan's avatar
    Hassan_Ballan
    Icon for Champion Level 3 rankChampion Level 3

    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.