Browser(”Browser”).Page(”page”).Sync doesnt work in UFT
Question ID: 105119
1
0

We have a need to ensure that the page is fully loaded before interacting with it. .Sync worked fine in QTP, but it’s no longer working in UFT!!!

Marked as spam
Posted by (Questions: 387, Answers: 66)
Asked on September 11, 2013 5:24 pm
643 views
Answers (1)
1
Private answer

This is a known problem. You can check KM00465514, which says

> In QTP 11, both Browser().Sync and Browser().Page().Sync statements
correctly use the Browser Navigation Timeout (default to 60 secs) to wait
for pages to load. Customer relies upon this timeout to synchronise slow
operations in their application.

>In UFT 11.51, Browser.Sync has the same behaviour as in QTP 11 (uses the
Browser Navigation Timeout as timeout value for the Sync method). However,
Browser().Page().Sync uses the Object Synchronisation Timeout instead as
timeout value.
>Workaround: Replacing Browser().Page().Sync by Browser().Sync

So, try changing to just .sync on the Browser object instead of the Page object.

Marked as spam
Posted by (Questions: 17, Answers: 807)
Answered on September 11, 2013 5:26 pm
0
That worked great! Thanks!
( at September 11, 2013 5:27 pm)
EyeOnTesting

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

X
Scroll to Top