【发布时间】:2019-07-03 07:47:17
【问题描述】:
我正在尝试使用 Selenium (python) 在 gmail.com 的搜索字段中插入文本,但遇到了一些问题。
我正在使用这个:
driver.find_element_by_xpath("(//input[starts-with(@role, 'search')])")
我希望找到可用于应用方法 send_keys() 的对象, 但得到错误:
NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"(//input[starts-with(@role, 'search')])"}
【问题讨论】:
标签: python selenium gmail selenium-chromedriver