0 Replies Latest reply on Jan 16, 2018 5:36 AM by Cameron Braid

    Is there any way to have a init method called on a Graphene page object/page fragment/etc.. after enrichment ?

    Cameron Braid Newbie

      I'd like to be able to run an init method after enrichment.  example :

       

      @Location("https://www.drivenow.com.au/")
      public class HomePage {
      
           @javax.annotation.PostConstruct
           public void init() {
                homePageTabWidget.doSomething()
           }
      
           @FindByJQuery(".home-search-area")
           private HomePageTabWidget homePageTabWidget;
           public HomePageTabWidget getHomePageTabWidget() {
                return homePageTabWidget;
           }
      
      }

       

      Supporting @javax.annotation.PostConstruct seems like a suitable candidate for an annotation to use

       

      Cheers

       

      Cameron