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

    Reuse initialpage object in another method

    vinothsjboss
      @Test public void t1(@InitialPage Google google){
      
       }
      
       @Test
       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.

       

      @Page
      Google google;