I have this piece of code:
f=driver.find_element_by_css_selector("textarea._bilrf")
(driver.execute_script("arguments[0].value = arguments[1]", f, "Hi!"))
The word "Hi!" is sent in the box. But, I could not press ENTER to send it. It is notifiable that send_keys()
and submit()
doesn't work in my code.