セレンを使用してこのウェブサイトにログインしようとしています: パスワードとログインは表示されません。私は周りを見回し、待っていると言った人がいるのを見ましたが、待つことは助けにならないようです。ここに私のコードは次のとおりです。Pythonでセレンを使用してウェブサイトにログイン
# importing libraries
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import re, time, csv
driver = webdriver.Firefox()
driver.get("https://platform.openquake.org/account/login/")
driver.switch_to
driver.maximize_window
time.sleep(10)
username = driver.find_element_by_xpath("//input[@name='username']")
username.send_keys("hi there")
エラーメッセージは次のとおりです。
ElementNotVisibleException: Element is not currently visible and so may not be interacted with
を:http://stackoverflow.com/questions/27927964/selenium-element-not-可視的な例外 –
私の特定の状況のためにそれを行う方法についてはちょっと混乱しています。私はそれを回避するために使用タブを解決することができました。 – Corncobpipe