Hi guys,
i want to log in to uploaded.net using selenium in python. this is part of uploaded.net source code that i want to detect and fill:
<form method="post" action="io/login" style="margin-top:16px">
<input type="text" name="id" value="Account-ID" style="" />
<input type="text" name="pw" value="Password" />
<div>
<button type="submit">Login</button><b class="a">Forgotten password?</b>
</div>
</form>
and here is my code:
from selenium import webdriver
browser = webdriver.Firefox()
browser.get('http://www.uploaded.net/#login')
user = browser.find_element_by_xpath("//input[@type='text'][@name='id'][@value='Account-ID']")
user.clear()
user.send_keys("myuser")
password = browser.find_element_by_xpath("//input[@type='text'][@name='pw'][@value='Password']").click()
password.send_keys('mypass')
the problem is that, selenium successfully fill username field, but can not fill password field. i am sure selenium find password field correctly, but send_key function fail to fill password field.
does anyone know how to solve problem?