Has anyone coded WebDriver tests using Groovy, XTend, Apache BSF, or similar?

339 views
Skip to first unread message

Jon Thor Austen

unread,
Sep 14, 2012, 2:46:13 PM9/14/12
to webd...@googlegroups.com
Has anyone coded WebDriver tests using Groovy, XTend, Beanshell, or a similar scripting framework in Java?  I am just curious if anyone has any opinions on these experiences verses just using the plain old Eclipse method?

Luke Inman-Semerau

unread,
Sep 14, 2012, 5:34:50 PM9/14/12
to webd...@googlegroups.com
I've heard of someone using groovy and making a bit of a framework (made by another luke): http://www.gebish.org/

Check that out... as for the other stuff, not sure :)

On Fri, Sep 14, 2012 at 11:46 AM, Jon Thor Austen <aust...@gmail.com> wrote:
Has anyone coded WebDriver tests using Groovy, XTend, Beanshell, or a similar scripting framework in Java?  I am just curious if anyone has any opinions on these experiences verses just using the plain old Eclipse method?

--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To view this discussion on the web visit https://groups.google.com/d/msg/webdriver/-/8HV1hNeNLewJ.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.

Mark Collin

unread,
Sep 15, 2012, 3:06:05 PM9/15/12
to webd...@googlegroups.com

Groovy is basically just syntactical sugar for Java. 

 

You can write Selenium tests in groovy using the Selenium API and you won’t come across any problems (I haven’t so far in the current project I’m working on).  If you want something that makes the Selenium API look more groovy have a look at Geb as suggested by Luke.

Tarun Kumar

unread,
Sep 17, 2012, 1:03:10 AM9/17/12
to webd...@googlegroups.com
I used groovy in for writing selenium tests with Thucydides and was surprised to see how less code needs to be written to do same thing in groovy than in java
But at the same time I found it little cumbersome to understand a groovy code than java. 

David

unread,
Jun 21, 2020, 1:29:39 PM6/21/20
to webdriver
Late response, but FYI, I did run Selenium code in Java via Beanshell before for testing & debugging. Useful alternative for trying out code than running & editing Java code in file and running with IDE/command line. I did blog it here: https://autumnator.wordpress.com/2012/02/02/developing-and-debugging-in-java-via-an-interpreter/
Reply all
Reply to author
Forward
0 new messages