Micro Focus QTP (UFT) Forums
Browser.Navigate - 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: Browser.Navigate (/Thread-Browser-Navigate)



Browser.Navigate - anemuday - 07-17-2008

Hi Friends,

I am using QTP9.2

I have recorded the following script:

Code:
'SystemUtil.Run "internet","","","open" this is generated by QTP
SystemUtil.Run "iexplore.exe","","","open"  ' i did small modification here
Browser("Browser").Page("Page").Sync
Browser("Browser").Navigate "http://www.allinterview.com/Interview-Questions/QTP/page1.html"
Browser("Browser").Page("Page").Sync
Browser("Browser").Navigate "http://www.allinterview.com/Interview-Questions/QTP/page2.html"
Browser("Browser").Page("Page").Sync
Browser("Browser").Navigate "http://www.allinterview.com/Interview-Questions/QTP/page3.html"
Here i am just opening the IE and navigating to the pages.

But when i run the script, the page is not navigating to the URL.

Can anybody know the reason, please let me know how to do this.

Similar scripts worked fine in QTP8.2(it seems).

Thanks in advance,
Uday.


RE: Browser.Navigate - jitendranookala@gmail.com - 07-19-2008

It is navigating If you want to view it. Keep wait() statement after navigate statement you can view it. Provide wait () with little amount of time.


RE: Browser.Navigate - anemuday - 07-19-2008

Hi,

Thanks for the reply.

I tried it previously, but it doesn't work for me.

So posting this in the forum.

Environments i am using is:
QTP9.2
IE6


RE: Browser.Navigate - surya_7mar - 07-29-2008

tRY THIS
Code:
SystemUtil.Run "iexplore.exe","http://www.allinterview.com/Interview-Questions/QTP/page1.html"
SystemUtil.Run "iexplore.exe","http://www.allinterview.com/Interview-Questions/QTP/page2.html"

SystemUtil.Run "iexplore.exe","http://www.allinterview.com/Interview-Questions/QTP/page3.html"