我使用的是带有selenium 3.14.1的Python版本3.8.2。
我对Python和Selenium都是新手。我正在使用Pycharm编写我的自动化脚本。当我尝试使用driver.find_elements_by_xpath().click()命令时,下拉列表中没有显示单击()选项。如果我使用driver.find_element_by_name or driver.find_element_by_id命令,也可以使用相同的
我试图在Python中用Selenium获取下面元素的URL ('href')。NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="href"]"}
这是我希望从('Href
我使用以下脚本查找名为“service_notes”的元素,并单击其中的第一个元素:from selenium.webdriver.common.keysservice_notes[0]) + ' is the first service note')service_notes[0].click()
根据日志,找到了该元素</