如何使用 python 使用 selenium 查找搜索输入元素

How to find Search input Element with selenium using python

如何使用 python

使用 selenium 查找搜索输入的元素

我试了很多次都失败了。

searchBar = self.browser.find_element_by_xpath("//div[@id='__field__38__']")
searchBar.send_keys("admin@example.com")

如何找到这种元素?

请试试这个:

searchBar = self.browser.find_element_by_xpath("//input[@placeholder='Search by name']")