Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
question on link
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi,

Code:
Browser("New Tab").Page("Customers_5").Link("test3").Click

when i run qtp, it creates a org then then click the org.
that means, i create a org name test3. it clicks test3. it works.

next time i run the query, it creates a new org test4 but it does not click test4. does not work.

Everytime i run qtp, link name will change. it works if link name is test3. it does not work if the link name is not "test3". how can i click new link if the link name is not test3? object reposity has only test3 under link.

Please help....



Thanks.
Reply
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
Here is a probable solution:
1. Rename your link object as "Test".
2. Goto your "Test" object's properties and add "innertext" property.
3. Edit that innertext property. Turn ON/Check ON the "regular expression" checkbox.
4. Change innertext value as: " test.* "
(without the quotes ofcourse)
5. Save OR and check.
Let me know if it worked.
Regards,
Zeeshan
Reply
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
HI,

U can use Descriptive Programing for this also.
Let me know in case u need any help.

Regards,
Sankalp
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)