WebDriver - フォームの入力とサブミット
# ユーザー名の入力
userName = wait.until(EC.presence_of_element_located((By.XPATH,
'//*[@id="__layout"]/div/div/div/div/div/div[3]/div[1]/div/input')))
userName.send_keys('
[email protected]’)
# パスワードの入力
password = driver.find_element(By.XPATH,
'//*[@id="__layout"]/div/div/div/div/div/div[3]/div[2]/div/input')
password.send_keys('*******’)
# サブミット
submitButton = driver.find_element(By.XPATH,
'//*[@id="__layout"]/div/div/div/div/div/div[6]/button')
submitButton.click()