Thursday, April 22, 2010

Richfaces trees and Selenium click

We hit this problem a while back and I couldn't find a good solution on the web. So when we use a tree display in richfaces and record is in selenium. It all works. However on playback the selected item cant be clicked on! Here is the solution. Take click and create your own method of click so it look like...
public void click(String location) throws Exception {
mouseDown(location);
mouseUp(location);
super.click(location);
}
or add the following before the click.
 mouseDown(location);
mouseUp(location);
I'm sure this is fixed in the latest selenium and richfaces but not all apps use that.

No comments:

Post a Comment