javascript - Selenium-Unable to Type into TextArea -
i trying enter value in text-area using selenium webdriver , java. however,sendkeys not working. on using javascript,though able enter value,but click save button,i error message enter value in text area.
below html textarea.
below selenium code not working :
element=driver.findelement(by.id("primaryclientdemarc")); element.clear(); element.sendkeys("testtextarea");
please provide suggestion.
you need focus
first on textarea
using click()
, try below :-
element = driver.findelement(by.id("primaryclientdemarc")); element.click(); element.clear(); element.sendkeys("testtextarea");
hope helps..:)
Comments
Post a Comment