Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not able to find the Link Object.
#2
Solved: 11 Years, 4 Months ago
Next time please paste the code you have been trying. That way it is easier to correct and reply back. The reason you are facing the error is because,

There is a link which you have stored with certain properties. these properties are static. However, during runtime the link could change due to various actions and hence the properties would change too. This brings us to deal with dynamic properties.

A concept called Regular expression is a powerful term used to deal with such scenarios. What you do is find a particular property which remains constant across all the links if text is appended or removed. Basically if you have links with properties like,

1. name:= LearnQTP
2. name:= LearnQTPagain
3. name:= LearnQTPandQTP

So if i want to identify all the links with a single line of code then i will use regular expression. Here is how i would do it,

Learn.* - It means ignore everything after *. Remember the word "Learn" is a constant in all the three properties. This way QTP will know that you have told it to look for a link with the name Learn and hence your script will go through.

As a beginner, i understand it is very tough to get to know everything. Pressure at work coupled with the urgency to get the task done pushes every individual to take the most shortest route. However, i suggest, the shortest route to get the answer is always to first search for similar posts, read through and maybe or probably you will find the answer before somebody answers it.

Good Luck with the learning mate !!!
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply


Messages In This Thread
RE: Not able to find the Link Object. - by basanth27 - 05-14-2010, 08:02 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Cannot find the "[ WebButton ]" object's parent "[ Page ]" (class Page) sumitparolkar@gmail.com 4 5,091 05-03-2013, 11:53 PM
Last Post: agarwl.anurag
  "Object not visible" when running desktop link RandomGrin 2 4,541 12-12-2012, 08:49 PM
Last Post: RandomGrin
  Run Error: Cannot find Object's parent anupam4j 3 6,732 09-18-2012, 10:26 AM
Last Post: sshukla12
  Link/Anchor tag name attribute in object naming? dingerjunkie 1 2,478 05-03-2012, 06:08 PM
Last Post: dingerjunkie
  Cannot find the "Edit" object's parent "Notepad" gnanajyothi 1 3,144 04-09-2012, 11:12 AM
Last Post: sshukla12

Forum Jump:


Users browsing this thread: 1 Guest(s)