We have a web application and on the test page, there is a Menu with three drop down menuitems. When I click any one of them a relevant page should open up. When I run the test for clicking the third item, the page for the second one opens up. I am new to QTP and I spent a day on it.I have added all the unique properties for the webtable. Any code can be written to close the wrong page and open up the correct page? What is wrong?
you said you have 3 items apperantly when you select the 2nd one you get the page associated with the 3rd one.
I would suggest to use the below line for selecting your items.
Browser("BrowserName").Page("PageName").WebList("W blstName").Select "#0"
'this will select the 1st item change the 0 to 1,2 for selecting the 2nd, and 3rd.
hope this work.
"I realize it's an error, but no one is going to try to do that!"
From "Top 10 Stupid Comments from Developers".
I finally fixed it with providing the exact absx, absy, x, y coordinates while clicking. Thanks for all your suggestions.
I am not sure if it is a permanent fix though.
Will post in details if i need more help.
But I woould like to know if there is a vbscript for making a browser/page openup?