Hi peeps,
I was trying to go login page for a particular UI
But I was not able to send a value to my password field.
HTML Content:
<input type="password" class="editbox" name="airstation_pass" placeholder="Enter the password." value="" data-fn="this.focus()" onfocus="dispElem('help_pass', '', this);" onblur="dispElem('help_pass', 'none', this);" onmouseover="dispElem('help_pass', '', this);" onmouseout="dispElem('help_pass', 'none', this);" xpath="1">
python Code:
password = driver.find_elements_by_name("airstation_pass")
# password.clear()
if password.is_displayed():
password.click()
password.clear()
password.send_keys("password")
Error :
Traceback (most recent call last):
File "/home/Documents/test_samples/Buffalo_ap.py", line 19, in <module>
password.click()
AttributeError: 'list' object has no attribute 'click'
[Finished in 34.9s with exit code 1]