0 Replies Latest reply on Sep 21, 2016 12:23 PM by vinoth selvaraj

    Reuse initialpage object in another method

    vinoth selvaraj Newbie
      @Test public void t1(@InitialPage Google google){
       public void t2(){
            //how to use the google object



      My google page object has the Location annotation which needs to be used along with @InitialPage in the test. If i need to use the same instance of the google object in another method, say t2, is there any option for me?


      If i go for below approach, then Location becomes useless.


      Google google;