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. ;) On Monday, 18 July 2016, <[email protected]> wrote: > 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 > > -- > 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 [email protected] > <javascript:_e(%7B%7D,'cvml','geb-user%[email protected]');>. > To post to this group, send email to [email protected] > <javascript:_e(%7B%7D,'cvml','[email protected]');>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/geb-user/6d06b6bb-3862-4997-b3b1-fc0652d93526%40googlegroups.com > <https://groups.google.com/d/msgid/geb-user/6d06b6bb-3862-4997-b3b1-fc0652d93526%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/CA%2B52dQR9T9Jh_e07tP2cTbfUtbfXfU44-VjSSP%2BpwEgryBABhg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
