Micro Focus QTP (UFT) Forums
problem in navigation of page dynamically - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: problem in navigation of page dynamically (/Thread-problem-in-navigation-of-page-dynamically)



problem in navigation of page dynamically - manishnangalia - 06-19-2012

I have created a script that automates the registration form process and when i debug the script it works perfectly fine. but when i try to execute the scripts it fails,actually there is a web Button which navigates to other page after generating a click event, But it does not do the same, can somebody help me out, thanks in advance


RE: problem in navigation of page dynamically - ravi.gajul - 06-19-2012

Please try the below code
Code:
Setting.WebPackage("ReplayType") = 2 '2-Runs mouse operations using the mouse
Browser("xyz").Page("abc").WebButton("WebButton").Click
Setting.WebPackage("ReplayType") = 1  '1-Runs mouse operations using browser events
this should help you

Regards,
Ravi


RE: problem in navigation of page dynamically - manishnangalia - 06-20-2012

Hey Ravi Thankx for the reply but my problem still exist. It behaves the same way as it was behaving earlier... Now again it is working fine when i am debugging the script but fails during run time, During Run time it executes the button click event and it directly goes to next line and start searching for the next object which is present in the next page, but it cannot finds that because the page is not navigated...


RE: problem in navigation of page dynamically - ravi.gajul - 06-20-2012

Looks like this is a synchronization issue if the click event is executed.Please use "synchronization" technique or introduce some wait time before the script actually executes the next line.Let me know your observation.


RE: problem in navigation of page dynamically - manishnangalia - 06-20-2012

I have already used the wait time after the button press but nothing happens, but why did u said, that i should use wait before the word press


RE: problem in navigation of page dynamically - ravi.gajul - 06-20-2012

Could you please post the html properties of the button?It must be a typo if I have asked you to use wait before word press.But I assume you got it right.


RE: problem in navigation of page dynamically - manishnangalia - 06-20-2012

yes it worked fine when i inserted the wait before the button press, but how did it worked is a new question aroused in front of me



RE: problem in navigation of page dynamically - manishnangalia - 06-21-2012

Hey guys thanks for your quick reply