Selenium 2(WebDriver) or Geb?

11,102

Solution 1

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.

Solution 2

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.

Share:
11,102
Aravind Yarram
Author by

Aravind Yarram

Winner of Hackathon @ Kafka Summit 2016. 2nd Place, Neo4j Graph Gist Winter Challenge 2014. Data informed over data driven. Datasets over algorithms. Delivery over ceremonies. Metrics over anecdotes. Hypothesis over intuition. Evidence over experience. Trade-offs over trends. https://www.linkedin.com/in/aravindyarram

Updated on July 20, 2022

Comments

  • Aravind Yarram
    Aravind Yarram almost 2 years

    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?

  • Aravind Yarram
    Aravind Yarram almost 13 years
    Thank you for providing the info on new tools but for us it should either be java or groovy so my search is restricted to those
  • Chuchoo
    Chuchoo about 6 years
    Why do you focus in headless drivers when there are real drivers like Chrome and Firefox ?