I try to select my input with selenium but when I use this it doesn't work:
driver = self.driver
password = driver.find_element_by_xpath("//input[@name='password']")
password.clear()
password.send_keys(password)
password.send_keys(Keys.RETURN)
# the sentence below doesn't work
password.send_keys(Keys.COMMAND, 'a')
password.send_keys(Keys.DELETE)
I am using Mac so Keys.CONTROL doesn't work, can anyone help me how to select the input or how to clear it?
Thanks