You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently working with Serenity using PageObject and ScenarioSteps files, not the Screenplay pattern.
In my project I have several reusable elements are appear on various pages. There are the obvious header, footer, and sidebar objects that lots of sites have, but also a few others that are specific to my project. I am unsure what class these reusable page elements should inherit from. I don't want to have them inherit from ScenarioSteps, since they contain no steps. I also do not want them to inherit from PageObject, since it contains many methods that do not apply to these elements. Methods such as open() and callWhenPageOpensMethods() come to mind.
Is there a class that these reusable elements can inherit from that is lighter than the PageObject class, but semantically different from the ScenarioSteps class?
The text was updated successfully, but these errors were encountered:
I am currently working with Serenity using
PageObject
andScenarioSteps
files, not the Screenplay pattern.In my project I have several reusable elements are appear on various pages. There are the obvious header, footer, and sidebar objects that lots of sites have, but also a few others that are specific to my project. I am unsure what class these reusable page elements should inherit from. I don't want to have them inherit from
ScenarioSteps
, since they contain no steps. I also do not want them to inherit fromPageObject
, since it contains many methods that do not apply to these elements. Methods such asopen()
andcallWhenPageOpensMethods()
come to mind.Is there a class that these reusable elements can inherit from that is lighter than the PageObject class, but semantically different from the ScenarioSteps class?
The text was updated successfully, but these errors were encountered: