I am testing a website TheLancet in qtp 9.2 and running a
script but its not working.Tell me if m doing anything wrong
in the script.
If Browser("TheLancet.com - Home Page").Page("TheLancet.com
- Home Page").Link("Clinical").exists
then
msgbox "object exist"
Else
msgbox"object doesnt exist"




Answers were Sorted based on User's Feedback



I am testing a website TheLancet in qtp 9.2 and running a script but its not working.Tell me if m d..

Answer / reddy

If Browser("TheLancet.com - Home Page").Page("TheLancet.com
- Home Page").Link("Clinical").exists


Here no "exists" just "exist"

Is This Answer Correct ?    5 Yes 0 No

I am testing a website TheLancet in qtp 9.2 and running a script but its not working.Tell me if m d..

Answer / siva

If Browser("TheLancet.com - Home Page").Page("TheLancet.com
- Home Page").Link("Clinical").exists
then
msgbox "object exist"
Else
msgbox"object doesnt exist"

Here Script having syntax error i.e there is no Endif statement.I am guessing this error.plz tell me is there any other.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer




More QTP Interview Questions

Hi we are running tests remotely from quality center and pushing tests into qtp boxes remotely, and it does execution but while uploading results back into quality center it hangs in qtp box.If any one come across similar problem, please send me details how to handle this. Thanks kris

0 Answers  


In qtp, how you can exit for loop?

0 Answers  


How many ways we can parameterize data in QTP?

6 Answers   Liquid Crystal,


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

1 Answers  


can we create recorset with out using database connection in vbscript?

1 Answers   CSS, CSS Corp,






Explain the checkpoint in qtp?

0 Answers  


how are environment variables used in real time projects (testing)?what answer should be given about this in interview.need real time explanation breifly?thnx in advance.

2 Answers  


Hello, How can i capture first letter of any string using QTP. For ex.. i want "j" in the below string "john" could any one explain me? Is there any function for that?

4 Answers   Livetek,


where we save the scripts created in one project?

6 Answers   IBM,


i want know iam working 2+ exp in QTP can i do performence testing (eg:loadrunner) yes r no?

6 Answers   IBM,


what is the use of automation objective model?where is used? plz tell me

2 Answers  


1. How to capture data from images in QTP and produce them in Excel sheet

1 Answers   Broadridge,






Categories