Powered By Blogger

Search Here!

Showing posts with label Insert Text in HTML Editor. Show all posts
Showing posts with label Insert Text in HTML Editor. Show all posts

Monday, February 25, 2013

Handle 'HTML text editor' in selenium RC and WebDriver

We could not directly insert text in the HTML editor. To automate the HTML editor we need to first click on the Show view source image button in the Editor tool box and then we can able to insert text in HTML editor text area.


WebDriver.FindElement(By.Id("viewsource")).Click();

WebDriver.FindElement(By.Id("txtHTMLEditor_textarea")).SendKeys("This is my Text!");