pageobject.org

25 views
Skip to first unread message

dennis...@agido.com

unread,
Jul 18, 2016, 6:08:09 PM7/18/16
to Geb User Mailing List
Hello Geb List,

I want to announce a new open source library called PageObject (https://www.pageobject.org/). It has several similarities with geb.

The first version of our test automatisation project was written using geb and groovy, but we had some problems with it. First, we had no colleagues with experience in groovy. And second we want to have compiler type checks. Both is groovy related, not geb, but using geb without groovy seems not to be the best option. I know that some people say that not having types is a strength of groovy, but we felt safer using types.

As a next try we rebuild our automatisation project using ScalaTest (because we already knew it) but the Page Object Pattern implemented there was only a class with an attribute called "url". But nothing like "at" or "$" like in geb. Something similar to "$" is provided only for form elements, called "Selenium DSL", but sadly implementing a page object is not possible this way.

Because of this we started to implement a new framework based on ScalaTest's Selenium API with everything we liked from geb reimplemented in Scala.

If you are interested please have a look at the homepage. The github repository and an overview presentation is linked there. Feedback is very welcome!

Dennis

Marcin Erdmann

unread,
Jul 20, 2016, 3:00:37 AM7/20/16
to geb-...@googlegroups.com
Thanks for sharing, Dennins.

FWIW, Geb also supports, maybe not completely typesafe, but a strongly typed way of writing and using your page objects: http://www.gebish.org/manual/current/#strong-typing. It will make your code slightly more verbose but in return you get code completion and it also enables your colleagues who did not write the code to easily understand what is the current page at any point in time. I personally write my tests this way nowadays.

Marcin

P.s. I hope it will be easier to find Scala developer than it was to find Groovy developers. ;)
--
You received this message because you are subscribed to the Google Groups "Geb User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+u...@googlegroups.com.
To post to this group, send email to geb-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/6d06b6bb-3862-4997-b3b1-fc0652d93526%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages