Accessing DOM for Browser in QTP 11
Testing out QTP 11 and found a difference pretty quick, seems that I am not able to get to the Object of a Browser class like we could in 10.0:
<font class="small">Code:</font><hr /><pre> Set thisBrowser = Browser("micclass:=Browser")
browserState = thisBrowser.Object.Document.readystate </pre><hr />
Seems that thisBrowser.Object is Empty when placed in the watch. If you add a page to the end of that, Object is populated as expected. This worked before, so I am confused. Does anyone else see this?
I am using QTP 11 with IE8. Used the new HP Update to test for any patches and it came back saying everything was up to date.