I want to pass driver instance between more than one POM class but i am unable to do that.I am using cucumber(bdd)for this purpose.Is there any way?

I want to pass driver instance between more than one pom class but i am unable to do that.I just want some solution or suggestion of dong it as i am storing all my xpath in pom java file and then  calling that pom class in my step definition class but driver is only able to pass instance to one pom class not to the other pom classes .I am using pageinit method for doing this from my step definition to send driver instance to pom class.

Add Comment
  • 0 Answer(s)
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.