Synchronizing with the DOM and UFT

Question ID: 105852
0
0

I heard somebody talking about using the document object model (DOM) to do synchronization with UFT. First, is this possible, and second, can you show me an example? I’m not very experienced with the DOM.

Marked as spam
Posted by (Questions: 89, Answers: 4)
Asked on January 19, 2015 3:41 pm
10 views
Answers (1)
0
Private answer

Here's an example of using the Internet Explorer (IE) Document Object Model (DOM) readyStatemethod, it can be used in order to verify the DOM state of the
web page.
Note: The following custom function is provided just as an example.

Sub WaitForPageLoad(iHwnd)
Dim loopCount, myState
Do While myState <> ''complete'' and loopCount < 60 loopCount = loopCount + 1 wait(5) myState = Browser(''hwnd:=''&iHwnd).Page(''micclass:=Page'').Object.readyState Loop End Sub For more details, you might want to refer to KM764532 with HP.

Marked as spam
Posted by (Questions: 2, Answers: 438)
Answered on January 19, 2015 3:44 pm