when we enter url,one page should open.write a vb script
,that page is open or not

Answers were Sorted based on User's Feedback



when we enter url,one page should open.write a vb script ,that page is open or not..

Answer / sri satya

SystemUtil.Run "C:\Program Files\Internet
Explorer\iexplore.exe","","C:\Program Files\Internet
Explorer","open"
Browser("title:=about:blank").Page("url:=about:blank").Sync
Browser
("title:=about:blank").Navigate "http://www.google.com/"

If Browser("title:=Google").Page("title:=Google").Exist then
msgbox "Page Exists"
else
msgbox "Page does not Exist"
end if

Is This Answer Correct ?    6 Yes 2 No

when we enter url,one page should open.write a vb script ,that page is open or not..

Answer / leena

Browser is open with blank home page

Browser("version:=internet explorer
6", "Title:=about:blank", "openurl:=about:blank").Navigate
("http://www.google.com/")
Dim a
a=Browser("version:=internet explorer
6", "Title:=Google", "openurl:=about:blank", "name:=Google")
.Page("Title:=Google", "url:=http://www.google.co.in").Exist
if a="True" then
msgbox " Page is open"
else
msg "Page is not open"

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More QTP Interview Questions

How to Install QTP on Citrix Environment? Possible send me the installation steps.. That would be great help

1 Answers  


write a script to verify the image path(src property) of the images which are in web pages.

0 Answers  


What are the check points can be inserted without recording?

0 Answers  


When The Low Level Recording is Used in QTP

17 Answers  


What is data driver in qtp? Where we use it?

0 Answers  






How to count the no of objects in XML file(QTP)

1 Answers   IBM,


in flight reservation ex once u login, u go into next window where we hav an option of new, open and help etc.. how to fetch those options and to go to respectiv tab accordingly using qtp.. plz let me knw answer for tis as early as possible. Thanks in advance... asha

1 Answers  


Hi, Where should I get all the test's results If I ran the scripts in Batch run. At the result window I found only last test result. Could any one help me on this?

3 Answers   Livetek,


How to use Regular Expressions in QTP

1 Answers  


what is the purpose of QTP?

2 Answers  


what questions i have to pripare for project manager round interview ? plz give Ans.(Chandana)

5 Answers   TCS,


How to open a new test using QTP?

1 Answers  


Categories