I am trying to get the URL ('href') of the below element in Python with Selenium. For the life of me it is not working, this is the only output I get is as an example:
NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="href"]"}
This is the element I want to get the ('Href') or ('Text') from:
Selector: #tinymce > p:nth-child(20) > a
Xpath: //*[@id="tinymce"]/p[7]/a
Full Xpath: /html/body/p[7]/a
I tried the following methods to find the element on the page with no luck:
Selector Xpath Full Xpath
Only get: NoSuchElementException: Message: no such element: Unable to locate element: