So I made a script a few years back that would use selenium to navigate a store, locate items by their name, then select them. I was trying to re-make it looking at my old code but it isn't working the same. I'm trying to use selenium to click on the first item it finds containing the text they have when I use inspect element on the item. However I just keep getting the same error that it can't find an element containing that text.
from selenium import webdriver driver=webdriver.Chrome('fakepath/fake') driver.get("https://www.supremenewyork.com/shop/all") driver.find_element_by_xpath("//a[@href='/shop/all/jackets']").click() driver.find_element_by_partial_link_text('GORE-TEX')
Here's the element containing the text that I'm trying to use selenium to find and click on
<a class="name-link" href="/shop/jackets/g1ze294ol/qapno01c2">GORE-TEX Taped Seam Jacket</a>
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"partial link text","selector":"GORE-TEX"} (Session info: chrome=76.0.3809.132)