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

What is the Dynamic Scenario in QTP? And also anybody give the example for this?

3 Answers  


How will u declare a variable to access multiple actions? a)Dim b)Global c)Public d)Private

1 Answers  


What is Reusable component is QTP...Anybody can answer it..Thanks in advance...

8 Answers   Siemens,


what is the difference between IE & Netscape in web testing on a log in page

0 Answers   TCS,


How to retrieve the data from database?

6 Answers   Wipro,


-->IF two TextBOxes are there in a "Form". -->A table contains some records which contains usernames & password.. -->What is the script we need to write using Descriptive programming concept...in QTP (simply DATA DRIVEN TEST SCRIPT OF QTP)?

3 Answers   CTS,


1.Qtp suppots Unix& linx or not 2why qtp suppots shell script.

0 Answers  


Can we directly automate test script according to requirements?

1 Answers  


What is the syntax to call one action in another?

0 Answers  


Plz suggest me a good training institute in Mumbai/hyderabad for QTP…. Plz advice thank u

29 Answers   IBM,


HOW TO CONVERT MANUAL TEST CASES IN TO AUTOMATION TEST SCRIPTS EXPLAIN THE PROCESS?

0 Answers   ADP,


difference between do while and do until ?

3 Answers   HCL,


Categories