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 –