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"

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is test object model in quicktest professional?

797


What contains Data Driven Framework document in qtp?

1637


Hello, Is there any way to send the test results in html format (or any other) by email using outlook after the test run ends? thank you in advance

1962


I want to read XML file loaded in Quality center and compare the values with the values displayed in Application (web table).How can I do that

1605


How you calling actions in qtp?

814


how to test use the quality control .how to verify the image verification

2787


What is Test Fusion Report in QTP?

850


How to execute the WR Script through QTP? I have WinRunner script with initialization script, common scripts, GUI AND functions. I connected WR through QTP with "call to WinRunner" option but I am getting problem after connecting to WinRunner i.e. showing "Do you want to quit now" with 'yes' and 'No' message box

2041


Can we create a qtp test from qc?

778


Can we record an application running on a remote machine using qtp?

898


Why bpt?

794


In QTP TEST DIRECTOR COMBINATION WHAT IS THE PURPOSE OF TEST DIRECTOR? In Somebody says to store test cases and design test cases.?ok fine , but In test director 5.0 , QTp not launching. what u do?

1694


Tell me one scenario, the complex functionality you have automated in your project?

1683


what and how to answer for the question "tell me about yourself ?" for 3 years experience. can anyone say inj detail please... its urgent

1525


what is impact analysis on regression testing?

2223