What is wrong in my code?

Answers were Sorted based on User's Feedback



What is wrong in my code?..

Answer / pavani prasad

Hi Uma,

try the below one, hope it will work.
If Browser("opentitle:="&result,"application
version:=internet explorer 7").Exist Then
print "ok"
else
print "no browser"
End If
If Browser("opentitle:="&result,"application
version:=internet explorer 7").Page
("title:="&pge1,"height:=593","url:="&purl).Exist
Then
print "ok"
else
print "no page"
End If

Is This Answer Correct ?    1 Yes 0 No

What is wrong in my code?..

Answer / uma

Hi,
Below is my code,
If Browser("opentitle:="&result,"application
version:=internet explorer 7").Exist Then
print "ok"
else
print "no browser"
End If
If Page("title:="&pge1,"height:=593","url:="&purl).Exist
Then
print "ok"
else
print "no page"
End If

Here I am able to get the browser.
for the page,I am passing exactely same properties,
what I got it from Object,but it always printing no page.
[I am passing the title and url and i am directly giving
height value]
Any help?
Thanks
Uma

Is This Answer Correct ?    0 Yes 0 No

What is wrong in my code?..

Answer / pankaj

Hi ,
try this one i hope it should work
Browser("opentitle:=result","application
version:=internet explorer 7").Exist

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

Tell about automation object model(Aom) in qtp?

6 Answers   GE,


What is the extension of 'Log file' in QTP

3 Answers  


QTP is identifying all windows application objects(i.e. winbutton,winconbobox,etc) as winobjects.How to handle this? Is there any way to add our own properties to identify objects?

1 Answers  


what could go wrong with test automation?

0 Answers  


How many test scripts are prapare in ur project(HeathCare Insurance).

1 Answers   Virtusa,






Hi any body can tell me the in detaled information about Description.Create() thanks in advance

2 Answers  


When do go for loop condition in test?

0 Answers  


Why script error occur in between recording in qtp?

0 Answers  


How would you directly trigger javascript in a test?

0 Answers   eBay,


How do client side image and server side image work?

0 Answers  


Hi, Plz give best Definition of Software Testing? Why we need Software Testing? and plz send 2+yrs experience Interview qutions (Manual,Qtp).

1 Answers  


What are the views available in qtp?

0 Answers  


Categories