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

I have made the recovery scenario in script. When i am exceuting the script. it stop automatically after running recovery scenario. Please tell the resaon?

2 Answers  


How can we get a textcheckpoint in QTP9.1?

2 Answers   EmTechPro,


I am using Shared OR, and my collegues are also using Shared OR. How to merge Object Repositories?

6 Answers  


Hello, Is there any way to send the test results in html format (or any other) by email using outlook after the test run ends? thank you in advance

0 Answers  


How to connect to oracle(sqlserver) database to QTP

3 Answers   CTS,






How will you declare a variable in qtp?

0 Answers  


How to capture screenshots of Exceptions/Errors during run- time?

12 Answers   Ordain Solutions,


Hi All, How to get repeated word in string . Thanks Balaji

0 Answers  


hi to all, i need a code.. in flight application 1.i need to login first then i need to insert 3 new orders... 2.i have to log out 3.i have to login again with different user 4.need to insert 2 new orders 5.then need to log out 6.then again login with different user 7.3 new orders create and log out 8.but we hv to do this using data table and actions please help me

0 Answers  


What are different versions in Win Runner ,QTP ,Load Runner and Test Director till now and atleast please let me know new features for each version. Ex QTP8.2,QTP 8.5.QTP9.2 supports Mozilla 2.0

1 Answers   DELL,


i have 100 manual test cases, how to automate from no 1. ols detail steps

1 Answers  


How to execute a VBS file without using Execute File statement?

3 Answers   iGate,


Categories