I'm using Python 3.4.4 to access a website (https://readability-score.com/) that has a textarea, which dynamically updates when new values are added.
I'm trying to input a string into that textarea box but it isn't working for me.
Here's the code that I'm trying:
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)
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 (http://selenium-python.readthedocs.org/). Thanks.