I am new to selenium and have tried searching for this element using xpath, ID, and class, however I cannot seem to find it. Upon using inspect element, the element is certainly there.
<input type="email" class="chakra-input rr-auth-web-user-email-input css-1wpvo2" placeholder="Email" name="emailAddress" id="emailAddress" required="" aria-required="true">
I have tried
login = WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, "//*[@id='emailAddress']"))).click()
Adjusting for ID, class name, etc, but the code can't seem to find it.
I am expecting the code to find the element and clicking on it, I have done this before on other sites however I cannot seem to figure out why it is not working here.
Given the HTML:
To click on the clickable element you need to induce WebDriverWait for the element_to_be_clickable() and you can use either of the following locator strategies:
Using CSS_SELECTOR:
Using XPATH:
Note: You have to add the following imports :