Trying to synchronize on a web page loading
Question ID: 105850
0
0

I’m trying to get UFT to synchronize on a web page that is loading. For some reason, the normal browser sync built into UFT is not working for me and so I’m looking for an alternative. Any ideas?

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

One of the ways is using a custom function. Here is a sample I found that you can try:

Sub VisibleSync(WebObject)
Set BrowserObj = WebObject
On error resume next
Do while BrowserObj.GetTOProperty(''parent'') <> empty
Set BrowserObj = BrowserObj.GetTOProperty(''parent'')
Loop
On error goto 0
BrowserObj.Sync
WebObject.WaitProperty ''x'', micNotEqual(0), 60000
End Sub

And then call it like this:

VisibleSync Browser('''').Page('''').WebEdit('''')

Marked as spam
Posted by (Questions: 2, Answers: 477)
Answered on January 19, 2015 3:09 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top