Relative Content

Tag Archive for pythonselenium-webdriverparentgeckodriver

How do I find this element’s parent in my Python Selenium Geckodriver code?

This section of my Python Selenium (Geckodriver) code is looking for the little element when looking at a pdf that appears on the search page to tell you it’s a pdf when you search, currently it seems like it can find it, because the driver isn’t returning any error’s or anything like that, but when I try to draw dom attributes like the parent node, it’s not returning anything. Weirdly though, it does respond when I ask dom attributes such as height. Does anybody have any suggestions on how I can find the parent node to this element? I need to access the parent for the actual link to the document.