Send keys selenium RETURN) After that, you should change windows so selenium could function in the new window from selenium. I know the Selenium sendKeys() is the best way to test the actual user inp For python selenium, Importing the library, from selenium. from selenium. For python, a good solution would be driver. Please downgrade to Firefox 28, which is the one Selenium 2. 0. Because you are using Firefox 29. DELETE keystroke to a text field with the Selenium web tester? I'm trying to simulate the user typing in a field and then deleting what they typed to test the interactive autosuggestion feature. 0 supports to, see CHANGES file. find_element_by_ element. I was trying to put a webdriver instance instead of element but it did not work. ENTER) # 'element' is the WebElement object corresponding to the input field on the page Share Improve this answer Press TAB and then ENTER key in Selenium WebDriver GenericKeywords. For python selenium, Importing the library, from selenium. After this code, I have to give Tab key. 41. typein(class. I don't know how to As you mentioned send_keys("TEST") are not working, there are a couple of alternatives to send a character sequence to respective fields as mentioned below : Use Keys. send_keys(Keys. webdriver. NUMPAD3 [simulating send_keys("3")]: login. When I tried to set the value of the text the program crashes. NUMPAD3) Use JavascriptExecutor with getElementById: Passing variables through Selenium send. 23. find_element_by_css_selector('<enter css selector here>'). END) I can't figure out what element shoul I use. keys instead of strings. How do I send a Keys. RETURN) You can find all the key names by searching this selenium. CONTROL , Keys. common. keys import Keys Use this code to press any key you want, Anyelement. variable, PageLength); pagelength is nothing but string. I know the Selenium sendKeys() is the best way to test the actual user inp. I need something like current window element? Have you any ideas? I have a long string to test and sendKeys() takes too long. keys import Keys element = driver. sendKeys() in Selenium WebDriver. CONTROL, Keys. keys import Keys element. keys.