Selenium is Groovy
UI-Element has been integrated into Selenium Core in the project’s subversion repository for some time now. This means no special tricks are necessary to use it - just specify your map file as a user extension! I’m posting this announcement mainly because it seems my original UI-Element post is at the top of Google’s search results, and I wanted to make clear that some things have changed significantly since it was published (but don’t want to rewrite the thing … you know, for posterity!).
Here’s the updated documentation link (if it doesn’t move again).
In other news, there is now a Groovy formatter for Selenium IDE, and support for a special GroovySeleneseTestCase which makes it possible to merge *AndWait commands into single commands. For example:
clickAndWait | foo
with the Java formatter translates into:
selenium.click("foo");
selenium.waitForPageToLoad("30000");
while the Groovy formatter simply says:
selenium.clickAndWait("foo")
Cleaner, and more expressive.
October 22nd, 2008 at 15:58
I’m trying to use TestRunner with UI-Element. Is this possible? UI-Element works great with Selenium IDE; however, I received an error ” Unrecognized locator” when I try to run the same testcase with TestRunner. If they are compatible, how to do I include the files.
Thanks.
October 24th, 2008 at 10:36
Hi,
You probably need to update the version of Selenium (Core?) you’re using. Try downloading a nightly snapshot from OpenQA.