如何使用selenium和python单击包含href属性的元素
如何使用selenium和python单击包含href属性的元素,python,selenium,Python,Selenium,请阅读并更新您的问题。谢谢。我尝试了xpath,但收到“selenium.common.exceptions.NoSuchElementException:消息:没有这样的元素:无法定位元素”错误。我尝试添加driver.implicity\u wait,但不起作用。 driver.find_element_by_xpath('//a[contains(@href,"https://commerce.spscommerce.com/fulfillment/transactions/li
请阅读并更新您的问题。谢谢。我尝试了xpath,但收到“selenium.common.exceptions.NoSuchElementException:消息:没有这样的元素:无法定位元素”错误。我尝试添加driver.implicity\u wait,但不起作用。
driver.find_element_by_xpath('//a[contains(@href,"https://commerce.spscommerce.com/fulfillment/transactions/list/")]')