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

Explain QTP using different development techniques ?

0 Answers  


Why use Regular Expressions?

1 Answers  


what are the disadvantages of qtp? can linux support qtp9.2? how could get web address throu vbscript?

6 Answers   Quintegra,


How can we record an edit box in the Web application ?

4 Answers   Kanbay,


What are the Features & Benefits of Quick Test Pro ?

1 Answers   Crea,






Explain the keyword createobject with an example.

1 Answers  


Hello Everybody, How to maintain the page state in QTP. My scenario is: 1. I opened a notepad file. 2. Entered some text in the notepad file. 3.And changed the font type and color of the notepad file. And saved that. 4.Now next time when I will open the notepad it is showing the changed font type and color, rather than the default values. Please provide the code. Thanks, Gaytri

5 Answers  


Hi How to retrieve data from web element line by line?

0 Answers  


There is a table with 4 columns and 10 rows, how to write the script to display the first column records using qtp? can anybody help me with script?

6 Answers   Oracle,


Explain about the test fusion report of quicktest professional?

0 Answers  


How to verify the Cursor focus of a certain field?

1 Answers  


Hoe can we do retesting using functions please give the code for it using login page

0 Answers  


Categories