Class SerenityPageExtension
- java.lang.Object
-
- net.serenitybdd.junit5.extension.page.SerenityPageExtension
-
- All Implemented Interfaces:
org.junit.jupiter.api.extension.BeforeEachCallback,org.junit.jupiter.api.extension.Extension
public class SerenityPageExtension extends java.lang.Object implements org.junit.jupiter.api.extension.BeforeEachCallbackExtension for webtest support in Serenity. Must be used before {SerenityStepExtension} as step injection/instantiation requires the correct {Pagesto be set}. Note that in contrast to JUnit4 {SerenityExtension} always creates theBaseStepListenerwithout pages in order to decouple the general setup from the setup for page support. The later is the task of this extension.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSerenityPageExtension.ExplicitWebDriverConfiguration
-
Constructor Summary
Constructors Constructor Description SerenityPageExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeforeEach(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
-