Automated QA VBScript runtime error - Permission denied: 'w2.document'
We are using TestComplete to test our web applications. There is a test case I've used in the past which now errors out with a VBScript Permission Denied error.
Basically what the VBScript code does is read a hidden field on our internal web page using the DOM object model like this:
Set w1 = Sys.Process("IEXPLORE", 2).Page(url)
Set w2 = w1.Form("mainForm").Panel("id_mainScreen")
id1 = Trim(w2.document.all.Item("myHiddenField").value) '<--------------------------------
Automated QA Errors out here getting the form field value. The field definately exists in the source which I already double checked. So that's not the problem.
I am trying to determine what permissions are required which are now missing/being blocked. We're running on Windows XP, IE8. I had our Systems Administrator turn off our firewall to see if that was blocking things. But that wasn't it. We do have certain GPOs in place for our IE 8 security which are locked down. I just need to figure out what Persmissions are needed for this type of DOM access? Any ideas would be appreciated.
Also our Systems team asked if I could provide them with a small script which would reproduce the access violation on their end. Unfortunatelty they are not permitted to install TestExecute in their environment. And I haven't found a way yet to simulate AutomatedQA's Sys.Process using VBScript. Could I use something like WMI to get the process instead?
Any help appreciated. Thanks,