How to click on link?
help please, I'm trying to do automation but it can't seem to find the link

4 Replies
https://lms.poly.edu.vn/
here's the link on the website and the word Ha Noi is the think I'm trying to get to click
It's not an anchor tag, it's a
p tag.
You could use a css selctor to click it:
div.max-lg\:hidden:nth-child(2) > div:nth-child(1) > div:nth-child(1) > button:nth-child(1) > p:nth-child(1)xpath is probably best here
or by using the
FindElements on p and grabbing the one with the exact text.
(they could also just reimplement the LinkText locator for p, which is basically the above^)agreed, it's more robust and reads more easily