Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

selenium send keys python

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By

driver = webdriver.Firefox()
driver.get("http://www.google.com")

elem = driver.find_element(By.ID, "inputWrapper")
elem.clear()
elem.send_keys("Hello world!")
elem.send_keys(Keys.RETURN)
driver.close()
Comment

PREVIOUS NEXT
Code Example
Python :: combining 2 dataframes pandas 
Python :: python die 
Python :: pyspark correlation between multiple columns 
Python :: how to use python to open camera app using python 
Python :: cons(a, b) constructs a pair, and car(pair) and cdr(pair) returns the first and last element of that pair. For example, car(cons(3, 4)) returns 3, and cdr(cons(3, 4)) returns 4. 
Python :: choosing the correct lower and upper bounds in cv2 
Python :: who is elcharitas 
Python :: how to print text after an interger 
Python :: creating a new folder in python 
Python :: python sort list of lists by second element 
Python :: python get script path 
Python :: load csv file using pandas 
Python :: csv python write 
Python :: pandas column to numpy array 
Python :: neat python full form 
Python :: access dataframe column with space 
Python :: how to get input from user in python 
Python :: plt.savefig without showing 
Python :: get home directory in windows python os 
Python :: how to end the python program 
Python :: Slicing lexicographically pandas 
Python :: python replace regex 
Python :: installing fastapi 
Python :: text to dictionary python 
Python :: how to add card in py-trello 
Python :: list to set keep order python 
Python :: opencv imshow resize 
Python :: python endswith list 
Python :: suppress warning jupyter notebook 
Python :: is alphabet python 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =