I would recommend not managing page objects directly in your DI
container. Rather having a PageObjectFactory that you inject in all
your steps classes.
Have a look at the tutorial for an example:
https://github.com/jbehave/jbehave-tutorial/tree/master/etsy-selenium/java-spring
It uses Spring as DI but you can easily adapt it to Weld.
On 05/03/2014 23:58, Brent Barker wrote:
Hi
We are trying to use Weld in our jbehave selenium project. I am
wondering if anyone has a working example of this.
The problem we are running into is allowing the PageObjects to have a
reference to other page objects. I know it is hard to describe this
without some code to show. I just want to make sure there isn't
already something out there that i'm not seeing.
Thanks in advance!
-Brent Barker
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email