1
我正在尝试使用Python Selenium Chromedriver登录ebay,但有一些困难。使用Python登录Ebay Sel
driver.get("https://signin.ebay.co.uk/ws/eBayISAPI.dll")
driver.maximize_window()
email_address = driver.find_element_by_xpath("//input[@placeholder='Email or username']")
password = driver.find_element_by_xpath("//input[@placeholder='Password']")
email_address.send_keys("email")
password.send_keys("password")
的错误是该元素是不可见的:
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.ElementNotVisibleException: Message: element not visible
它应该是相当简单的,但我无法弄清楚。在我遇到类似的问题之前,这与iframe有关。
非常感谢
非常感谢纳文!现在正在工作。所以我只是在输入之前忽略了跨度? – blountdj
是的,做出了更具体的XPATH –