I'm new to Selenium, and I'm having trouble figuring out how to automate finding elements such as buttons and text fields. Here's what I have:
import os
from selenium import webdriver
os.environ["PATH"] = "chromedriver_win32"
driver = webdriver.Chrome()
driver.get("https://signup.mail.com#.7518-header-signup1-1")
driver.find_element(
"xpath",
'//*[@class="pos-form-element pos-text-input email-alias-input__alias-input ng-pristine ng-invalid ng-touched"]',
)
I'm confused because it's saying it cannot find the element. Is there anything obvious that I'm doing wrong? I'm not sure how to fix this.
$x('//*[@class="pos-form-element pos-text-input email-alias-input__alias-input ng-pristine ng-invalid ng-touched"]')on chrome devtool. it return an empty array.