How to call pageobject method in another pageobject class.

How to call pageobject method in another pageobject class.

Lets say I have a method in homepage pageobject class and i want to call it in my checkoutpage pageobject. I am here refering to cucumber framework with DI container- Picco. Since our testContext is limited to step file only hence step definitions.

If I create new object for pageobject whose method I want to call/use, it will create a new instance hence will cause the flow of execution.

Default Asked on December 11, 2018 in Selenium WebDriver.
Add Comment
  • 0 Answer(s)
  • Your Answer

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