Answer the question
In order to leave comments, you need to log in
How to insert text into textarea?
Hello, I can't insert text into textarea.
Here is the code:
from random import choice
comments = ['Cool!', 'Nice:)', 'I like it']
browser = self.browser
comment_input = browser.find_element_by_tag_name('textarea')
comment_input.send_keys(choice(comments))
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question