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

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -