Forum Discussion
AlexanderM
Staff
15 years agoHello Derek,
First, please make sure that you are using the latest version of TestComplete (v. 8.50). Does the problem exist when you are using the latest version?
The situation may be as follows:
On the problematic page, AJAX methods are used to update its contents, and even when the page is loaded, its object tree has not been completely built. Normally, TestComplete automatically waits until the page is loaded, but when AJAX is used to update the page's contents, the tool does not have means to automatically recognize the moment when the page's object tree has been entirely built. To check if this is your situation, add a delay before getting the myHiddenField object, for example:
Delay(120000) 'wait for 2 minutes to make sure that the page is completely loaded
id1 = Trim(w2.document.all.Item("myHiddenField").value)
If the problem remains, try to reproduce the same problem on another machine to check whether the problem is machine-specific and let us know the results.
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?
I'm afraid that the abilities of WMI are not enough to emulate the problem when TestComplete is trying to obtain the value of the myHiddenField item. Moreover, it is unlikely that the problem is on the side of the tested application, so there is nothing to investigate and fix for the developers.