I Have a link of an account in my web page. Based on the length of the link, it will either display as single line link or multi line link. How to identify the link when its displayed in multiple lines using selenium.
ex: 'ST WF SETUP_AWS_USB_APPLICATION_12345' this link name is displayed as a single line link
If i change the name of account to 'ST WF SETUP_AWS_USB_APPLICATION_SETUP_AWS_USB_123456', link displayed as a 2 line link. like below -
'ST WF SETUP_AWS_USB_APPLICATION_ SETUP_AWS_USB_123456'
As the link is divided into 2 lines, i can see
tag in link name and not able to identify using "By.linkname
"
I want to have a unique code to identify the link irrespective of number of lines its divided into using Selenium