Skip to content Skip to sidebar Skip to footer

Entering A Value Into A Type="hidden" Field Using Selenium + Python

I've been searching for how to solve this but can't seem to find anything that works for me. Hope someone can help. I'm on a website using python and selenium chrome browser and tr

Solution 1:

Target input field has no type="hidden" attribute. It might be not visible initially after page redirection, so you can try to use ExplicitWait to solve this issue:

from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC

WebDriverWait(driver, 10).until(EC.visibility_of_element_located((By.XPATH,'//input[@placeholder="Email or username"]')))

Post a Comment for "Entering A Value Into A Type="hidden" Field Using Selenium + Python"