我在Python上使用Selenium时遇到了一个问题。下面是完整的错误代码: selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate事实是,当我单击该元素并复制完整的XPath时,我得到的是: /html/body/div/div[3]/div[2]/form[1]/input 但由于某些原因它不起作用。我使用Edge Chromium和P
使用此代码无需无头许可..。网站链接: element = self.driver.find_element_by_xpath('//*[@id="container"]/div/div/div[3]/div/div[4]/div/div[1]/div[2]/div[1]/button') print('Error in click