we didn't test rich:editor with Selenium 2 but we have several tests using Selenium 1.x. Editor component is a bit tricky because it uses an iframe which causes problems with Selenium. You need to switch frames according to which element of the page are you using.
You can have a look on our tests for richfaces-demo:
Basically what you need to do to access editor's content, you have to call
selenium.selectFrame( ... inner iframe locator ...);
and after you checked the content, you switch back to main window using
I'm not sure whether this approach works with Selenium 2 too but give it a try
Thanks for the fast response!
I already tried a variation of what you suggested, my problem is that "inner iframe locator" i looked in the rendered HTML page and there is no iframe, should I be looking for the locator somewhere else? I tried using the xpath expression for the rendered textarea but selenium complains that it is not a frame (Which makes all the sense in the world )
EDIT: Never mind, Used chrome's "Inspect Element" and found the iframe, your solution worked like a charm!! Thank You Very Much!