Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sync method
#1
Solved: 11 Years, 5 Months ago
Hi,
i have often used the Sync method on Page objects (without problems), ma now i obtain this error:
Object doesn't support property or method: 'Sync'
The code (previously functioning) is:

Code:
Dim brow, pag
Set brow = Browser  ("hwnd:=" & hwnd(0) )
Set pag  = brow.Page("hwnd:=" & hwnd(1) )
pag.Sync

where hwnd(0) and hwnd(1) are the values of hwnd property for the objects Browser and Page.
Any idea? i had been obliged to uninstall and re-install QTP (v. 8.2) for other problems... maybe it's possible that during the installation something is broken... howewer with Object Spy I see the Sync method on Browser & Page objects...
Reply
#2
Solved: 11 Years, 5 Months ago
ok i tried the following thing :

Code:
Dim brow, pag
Set brow = Browser ("name:=Google" )
Set pag  = brow.Page("title:=Google" )
pag.WebEdit("name:=q").Set "Kishoreinchennai"
pag.Sync

it worked for me I suspect something wrong with the hwnd:=" & hwnd(0) hwnd:=" & hwnd
check if you could set some value of any object using the pag

I feel pag is not becoming a page so it is erroring out

Regards
Kishore
Reply
#3
Solved: 11 Years, 5 Months ago
thanks for suggestions,
howewer i have been obliged to uninstall and reinstall QTP... now fortunately Sync method is recognized... so my previous code functions :-)

bye
Reply
#4
Solved: 11 Years, 5 Months ago
I update my previous post for who could have same problems... Sync method didn't function only if i used Quality Center to launch QTP... and the origin of the problem has been the update from SP2 to SP3 (add_in of QTP_8.2 for Quality Center functions only for SP1 and SP2)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question Cross Browser Sync Not Working geodude 0 1,985 04-07-2017, 08:43 AM
Last Post: geodude
  How to use sync function 22sumit 2 3,509 06-16-2015, 06:27 PM
Last Post: 22sumit
Wink Webedit Javascript sync issue praveenzack 3 3,370 10-10-2012, 06:25 PM
Last Post: praveenzack
  .Sync is NOT waiting for browser to complete current navigation.. can anyone help? mansis 4 4,639 09-14-2012, 06:53 PM
Last Post: mansis
  Sync points fran101 2 3,273 07-04-2012, 03:17 PM
Last Post: Shridevi.Salagare

Forum Jump:


Users browsing this thread: 1 Guest(s)