Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

selenium send text in p html tag

textbox = driver.find_element_by_xpath(".//div[@role='textbox']/p[1]")
driver.execute_script("arguments[0].textContent = arguments[1];", textbox, "This is a test")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #selenium #send #text #html #tag
ADD COMMENT
Topic
Name
2+7 =