05-29-2012, 09:31 AM
Hi Shridevei,
It's one of the approaches that we can follow. But, can we think about the disadvantages of this code.
1) what if we don't have any links the page?
2) What if we have 5000 links on the page and I wanted to click on last link, how much time you are elapsing for the same?
why can't we create a child object with classname,htmltag and innertext/name so that we can directly identify directly if that particular link object does exist in the application or not. And then perform the action accordingly.
Thank You,
Sridhar
It's one of the approaches that we can follow. But, can we think about the disadvantages of this code.
1) what if we don't have any links the page?
2) What if we have 5000 links on the page and I wanted to click on last link, how much time you are elapsing for the same?
why can't we create a child object with classname,htmltag and innertext/name so that we can directly identify directly if that particular link object does exist in the application or not. And then perform the action accordingly.
Thank You,
Sridhar
Thanks,
SUpputuri
SUpputuri