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:
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.
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.
SmartBear Test Extention is also installed in Edge Extention successfully.
Question:
Related configruation above is fine, why still prompt this information and ask me “Allow” or “Block”
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.
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.