I have elements in my code like this :
<input data-v-d6c12922="" type="text" name="account" placeholder="账号" class="username">
<input data-v-d6c12922="" type="password" name="password" placeholder="密码" class="password">
I used this, but it's not working.
userElem = browser.find_element_by_xpath("//html/body/div[1]/div[1]/div[2]/div/div[2]/input")
Error:
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//html/body/div[1]/div[1]/div[2]/div/div[2]/input"}
How can I auto-fill the username and password?
Thank you.
