can not identify prompt by using Object Spy
run Edge as manager(administrator) role can identify prompt by Object Spy, but run Edge as sysoptest(administrator) role can not identify prompt( can identify normal elements), how to solve this?
confirm. alert or other prompt can not be identified by Object Spy.
TestComplete version 14.93, edge version 87, tescomplete extension are all installed and enabled,web settings are all the same.
TC needs to be 'run as administrator' to properly access objects for identification. The access level of the current user can be different. You may need to check with your IT department to enable this. If you are logging into the test computer as different users with different access levels this could be causing the problem.
https://support.smartbear.com/testcomplete/docs/general-info/configuring/testing-under-admin-account.html?sbsearch=Run%20as%20administratorTestComplete will run a web browser with the same privilege level it is assigned. To launch a browser as a different user you could script a call to start your browser. As you have found, testing with different privilege levels can be problematic and even unstable at times. I hope this helps!
WshShell = Sys.OleObject("WScript.Shell"); WshShell.Run("runas /user:StandardUser \"C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe\""); // Or... WshShell.Run("runas /user:StandardUser \"C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe https://your-web-app.com\"");