【发布时间】:2019-07-13 20:49:17
【问题描述】:
driver.find_element_by_xpath("/div/a[@id='switcher_plogin']")
【问题讨论】:
-
请阅读为什么a screenshot of code is a bad idea。粘贴代码并正确格式化。
-
按 id 使用,这里不需要 XPath。它在 IFRAME 中吗?您是否尝试过添加等待点击?
标签: python selenium xpath css-selectors webdriverwait