Thank you @Stephen and undetected Selenium for your answers. After some time reading on how where to find an example of send_key
, I found an amazing gist of examples.
The send_keys
below example worked for me:
browser = webdriver.Chrome()
def test_key_down(driver): driver.get('https://www.selenium.dev/selenium/web/single_text_input.html?#') ActionChains(driver) \ .send_keys("abc") \ .perform()
test_key_down(browser)