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

When I start recording any web application (either Mozilla or IE) QTP recognizes window instead of browser and also it does not show all the hierarchy tree of that particular web page. 1. Window("Mozilla Firefox").Check CheckPoint("Mozilla Firefox") 2. As everybody knows it should be browser("Mozilla Firefox").Check CheckPoint("Mozilla Firefox") I am using the windows vista, do you think it may be a problem of my settings in QTP or problem of my installation. Your kind responses will be appreciated. Thanks in advance. Satya

12 Answers  


why the smart identification is not there in WinRunner

1 Answers   DigiTech,


can u Give Procedure to Handle Pop Window & write Code for that

2 Answers   CTS,


what is smart identification?

7 Answers  


Which advantages helping QTP to hold the position of "Market Leader" for such a long period?

0 Answers  






How to Import data from a ".xls" file to Data table during Runtime.

10 Answers   BirlaSoft,


Hi All, What is an XML Checkpoint in QTP? How can i use it while testing a web application? Kindly explain in detail. Thanks in advance

2 Answers  


What is diff. between ordinal identifier INDEX and Location?

3 Answers  


what is the advantages and disadvantages of using functions instead of re usable actions

0 Answers  


what version of test director supports the QTP? does testdirector supports the QTP9.0?

1 Answers  


what is defination of regression testing?

3 Answers  


what is the defference between QTP 8.2 and 9.0and 9.2? plz tell me

6 Answers  






Categories