Press ENTER selenium python

To press enter on an element such as a text field or text area, import Keys and use Keys.ENTER

.send_keys(Keys.ENTER)
Example:
from selenium.webdriver.common.keys import Keys
element.send_keys(Keys.ENTER)

SNAPPED!

SNAPPED!

Comments

Popular posts from this blog

Append to a json file python

Setup Mailhog mail server on Ubuntu