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 QTP recognizes Objects in AUT?

8 Answers   Blue Star,


i am new to qtp i do not know how to write script how to write the code to login if it fails how to able error messages

4 Answers   Accenture,


How can i see test results in excel sheet ? test data not present in data table.

5 Answers  


It is a SQL question. Write a query to find top three salaries in an EMP TABLE?

7 Answers  


what is the difference between ClassName and class in QTP?

3 Answers  






What is diffrence between Global variables and Environment variables...Anybody can give me answer..Thanks in advance..

3 Answers   IBM,


In key word driven framework,we will rename the logical names of objects,why?

3 Answers   Liquid Hub,


is qtp 9.2 create the scripts with the application run on mozilla firefox browser?

3 Answers  


how do close the task manager through QTP?

2 Answers  


What is quicktest professional (qtp)?

0 Answers  


i have written some lines of code today..tommorow some lines of code deleted in middle of that code..how to handle this type of script

1 Answers  


does qtp need record and playback in realtime. plz tell exactly wat happens

3 Answers   HP,


Categories