unfortunately, there is no compact documentation on Selenium testing in RichFaces. However, you can have a look at Selenium tests for RichFaces demo application ( http://anonsvn.jboss.org/repos/richfaces/branches/community/3.3.X/samples/richfaces-demo/functional-test/) or test for various nested components ( http://anonsvn.jboss.org/repos/richfaces/branches/community/3.3.X/test-applications/seleniumTest/). You can also read about our small library that is being used for testing demo ( http://rik-ansikter.blogspot.com/2010/03/new-richfaces-selenium-library-for.html).
We are now preparing a completely new test suite for RichFaces 4 which will be available soon. Documentation will be available as soon as these tests are created.
Thanks for your valuable reply , when you people are planning to relaese new test suite for RichFaces 4 and its documentation ?,so that we should know how long i have to wait.
i am testing my application using selenium and i saw that richfaces using selenium.attachFile() for file uploading(rich file upload),but in my case malformed url exception is coming. my code is as follows
where "xpath=id('docForm:upload:file')" is the locator and abc.xml file to upload.
Can you tell me is this is right way to give path of file = "file///C:\\abc\\abc.xml" ?
i tried selenium.attachFile("xpath=id('docForm:upload:file')", "file://C:\\abc\\abc.xml"); but it is giving following following exception
com.thoughtworks.selenium.SeleniumException: java.io.FileNotFoundException: C:\Users\sunay\AppData\Local\Temp\c:abc\abc.xml .
I made a JSF 2 and Richfaces 4 application, and I began to develop the unit test for the UI. I chosed Richfaces Selenium library but the problem is that I can not find documentation.
Mr Pavlov, here's one year passed since your last message, saying that you working on. I wanted to know if you have a link for a tutorial or a user guide?
Thank you for your prompt response But I admit that it all seems to me a bit complicated.Since I just started on Selenium.
If this is abused, can I ask you a simple example of use (Hello world) with Richfaces4, to get started.
Regrettably I have not simple sample for you.
I can point you to tests which are used for testing RichFaces itself ,
but you have to be aware that these tests covers components on low-level.
On the other hand you will find there samples for testing almost all aspects found in RichFaces framework.
Hopes this will help you a bit. :-)
The only additional aspect of full-blown application tests is using navigation between pages, I would recommend you using this PageObjects pattern  from Selenium project wiki.