warpedjavaguy

Imperative by day and functional by night

Page Objects Begone

This post has been moved to here

Written by warpedjavaguy

August 27, 2014 at 12:28 am

Posted in automation

Tagged with ,

2 Responses

Subscribe to comments with RSS.

  1. Nice! I had been thinking about how to use gwen to bind to selenium, but still thought there would be a page object like jBehave. The code glue in jBehave or in custom page object felt like a wasteful parallel code tree; a motivational hurdle for developers.

    Are you using the same REPL as jboss forge? I read they just switched to a new implementation.

    Also have you tried gradle for building scala? I wonder if it is mature enough or would offer any advantages over sbt?

    oopsnullpointer

    August 27, 2014 at 9:08 am

    • Gwen uses its own REPL implementation and it’s own gherkin parser too. (Update: 2 March 2016: Gwen now uses the very fast Gherkin parser implementation below instead of its own which was implemented using the scala parser combinator library. See
      https://github.com/cucumber/gherkin
      ). Building these from scratch opened our eyes to new ways of interacting with the web driver API that lead to us realising that most (if not all) page object behavior can be emulated with dynamically scoped attributes instead of java classes that need to be coded.

      Regarding sbt, it is well suited and particularly targetted at scala projects and it works very nicely with minimal setup. I personally would not dream of building scala source with any other tool.

      warpedjavaguy

      August 27, 2014 at 9:27 am


Comments are closed.