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

diff between dim & redim ? in detailed? pls any one explain me?

1 Answers  


Tell me about your project? please help me how to tell about insurance project

0 Answers   Cap Gemini,


I want to test my vb.net solution file using qtp. Does Qtp test only .exe file?

0 Answers  


How to make arguments optional in a function?

0 Answers   Crea,


If an application name is changing frequently i.e while recording it has name “Window1” and then while running its “Windows2” in this case how does QTP handle?

7 Answers   Covansys,






can any one say that where we can download the QTP trail version ??????????

0 Answers  


What are main panes available in qtp test browser?

0 Answers  


How do you learn the object in QTP?

2 Answers  


in a web page How to check and display a particular word from a paragraph?

0 Answers  


How to load a object repository in QTP during runtime?

2 Answers   BNP Paribas, Virtusa,


actually how many hours per one day we will work on automation(qtp) in real time

1 Answers   Synechron,


what is option explicit?

5 Answers  


Categories