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

CAN ANY ONE PLEASE EXPLAIN DIFFERENT TYPE OF FRAMEWORKS USED IN QTP?EXPLAIN EACH OF THEM?..POST TO VANILKUMAR_1981@YAHOO.CO.IN

2 Answers  


write a regular expression pattern for xyz?123?

1 Answers   FAI,


plz can any one send me what is Automation Testing Frameworks.. Thanks in advance

1 Answers  


explain keyword driven framework?

2 Answers   Mindlance,


Pls let me know how to find out creation time and index for the web application in descriptive programming?

2 Answers   HP,






I have faced one issues while doing test in QTP. I have described the scenario below. 1. I have to test web application.In that i want to give input of drop down values in the application. 2. Suppose Drop down has 5 value "A,B,C,D,E".I would like to give value from data table of QTP. 3. I have changed the drop down value as variable in Keyword view and given values in data table "A,B,C,D,E" as one below one. 4. While i am running the script it could not identify the drop down value which is in Data Table.It shows message. How to make value identify by QTP?

1 Answers  


Hi All, I have QTP installed on my machine but the application under test (AUT) is on remote desktop (i.e. I first connect to remote desktop from my machine in order to run the application). I am able to record the script successfully with QTP running on my machine and application running on remote. However, when i run the recorded script, system fails to run it and indicates me that it does not identify the object. Is it possible to record and play while QTP and AUT are not on same machine?

7 Answers   ABC,


QTP -object reposistory spy tool is not able to spy the pop up message appearing in the application, so how is that i can handle such run time pop ups in QTP by code???

2 Answers   CGI,


What is difference between Quality centre and Test Director?

1 Answers   Nokia,


What is meant by Environmental variables?2 types r there know…can u pls explain clearly?

1 Answers  


How can you identify the browser and its information using QTP script?

0 Answers  


Can any one send me the QTP Basic Coding Samples?

0 Answers  


Categories