Click a link based on text next to the hyperlink


#1

Hi,

I need to click a link based on text next to the hyperlink.

It is like grid structure - Each row, there is one hyperlink and one label text.

See attached image.

Input is Company 001 or Company 002 or Company 003.

I need to click corresponding hyperlink based on “Searching Company 001 or 002 or 003”.

Please give some suggestion.

Thank You.

Best,
K.Kannan.

Clickimage


#2

Hi @KannanK,
Here is the solution,

  1. Do find element on the label text.
  2. Use find ancestor activity to find the parent element.
  3. Specify parent element in Find children activity and specify the filter to get hyperlink.
  4. Check for the resultant count and if count > 0, get the hyperlink element
  5. Add click activity and use the resultant element in the target element property.

#3

Hi @Madhavi,

Thank You - I will try your suggestion and feedback.

Best,
K.Kannan.


#4

Were you able to get this to work?