I wrote an entry previously about manipulating a GWT RichTextArea widget via Selenium. Recently I've been investigating moving to Selenium 2, also known as Selenium WebDriver.
As with Selenium 1 the mechanism for manipulating a RichTextArea widget in Selenium 2:
- Select the iframe that the RichTextArea resides in
- Type the required text into the body of the iframe
- Select the top level frame
Assuming a RichTextArea with an ID of "gwt-debug-text-editor" the following Java code fragment gives a concrete example of doing this