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 r steps to migrate from Manual testing to QTP?(IN BOTH WEB BASED AND WINDOWS APP)

1 Answers   Wipro,


How exactly you start scripting in QTP? In the interview he was not satisfied with my answer.Please post what is correct answer.

2 Answers  


How to handle the exceptions using recovery scenario manager in QTP?

1 Answers   Crea,


Explain process of smart Identification in QTP?

0 Answers  


How to identify 2 versions of browsers based on regular expression

1 Answers   Cognizant,






Hi my name is mohan. I am working as a manual tester.. And now i want learn QTP.. is there any online websites to learn QTP for free if u know any plz help me out..,.or send mail to k.mohann.mohan@gmail.com

3 Answers   Wipro,


can any body clearly explain about keyword driven framework .give me the explanation for files what ever you use in this frame work?

0 Answers   Sapient, Satyam, TCS,


when a test case is written how u test using qtp

0 Answers   Satyam,


How to display the first 3 letters in these "ABCDEFGH" using qtp script?

6 Answers   Oracle,


How we can import data from database?

0 Answers  


How can we get the result from WindowsXP Command Window? (e.g. After we input 'ipconfig' in command window, how QTP get the result?)

3 Answers  


Hi,can anyone tell me How to found the number of 1's and 2's in the given format 1,1,2,2,3,3,4,2 using vbscript Thanks in advance

3 Answers  


Categories