Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selenium 2(WebDriver) or Geb?

I am very much impressed with web driver and page object pattern. Recently I saw Geb framework and with spock framework combination seems to be like a powerful alternate option for automated tests. Is anyone one using Geb? Do you think of any limitations of Geb?

like image 349
Aravind Yarram Avatar asked May 14 '11 01:05

Aravind Yarram


2 Answers

Using Geb at our workplace has been a life-saver. I can't imagine this many people (with absolutely no programming background) picking up Selenium in as short a time span.

I've been very successful creating mavenized geb projects that we have running on Jenkins for our CI. It does have a few limitations like not having the drag and drop ability right out of the box. However, you are always free to use the Selenium APIs whenever the need arises. Also, to the commenter about it lacking the support for phantomJS - says who? You can use absolutely any driver that selenium supports. Check this link for details.

like image 69
testing123 Avatar answered Oct 12 '22 09:10

testing123


There's nothing wrong with Geb from what I have experienced, but I would widen the search to include some of the recent(ish) drivers coming from Rubyland. Webrat was a great starter, but Capybara is actually quite excellent.

It takes more of a meta-approach, and provied a unified API for several different drivers, including Selenium and head-less alternatives such as HtmlUnit or env.js.

Thanks to JRuby, using libraries written in Ruby os now quite easy.

like image 39
Pål Brattberg Avatar answered Oct 12 '22 11:10

Pål Brattberg