Python selenium sending keys into textarea
<p>I'm using Python 3.4.4 to access a website (<a href="https://readability-score.com/" rel="noreferrer">https://readability-score.com/</a>) that has a textarea, which dynamically updates when new values are added. </p>

<p>I'm trying to input a string into that textarea box but it isn't working for me. </p>

<p>Here's the code that I'm trying: </p>

<pre><code>driver = webdriver.Firefox()
driver.wait = WebDriverWait(driver, 2)
URL = "https://readability-score.com/"

text = "Hello hello hello, this is a test"

driver.get(URL)
time.sleep(2)
driver.find_element_by_id("text_to_score").clear()
driver.find_element_by_id("text_to_score").send_keys(text)
#driver.find_element_by_xpath("/html/body/div[1]/div[6]/div/div[1]/form/fieldset/textarea").clear()
#driver.find_element_by_xpath("/html/body/div[1]/div[6]/div/div[1]/form/fieldset/textarea").send_keys(text)
</code></pre>

<p>The problem is that the selenium driver can not find the textarea to send the keys into. I think it's able to clear it (because I can literally see the text being cleared when you enter the page) but no text can be enter. Would anyone have an idea about this? I followed the online guide but I felt like I've tried all options that were listed (<a href="http://selenium-python.readthedocs.org/" rel="noreferrer">http://selenium-python.readthedocs.org/</a>). Thanks. </p>