Details
-
Type: New Feature
-
Status: Open
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Core
-
Labels:None
-
Number of attachments :
Description
An Example:
PreRequisiteHandler prh = new PreRequisiteHandler() {
public void preRequisiteCheck(Object instance, Method method) {
String url = webDriverProvider.get().getCurrentUrl();
String urlPart = getUrlPartFromAnnotationOnMethod(method));
assertThat(url, contains(urlPart));
}};
configuration.usePreRequisiteHandler(prh);
WebDriver assumed page checking, before invoking a step, is one use of a pre-requisite. Ultimately this is a jb-core enhancement, and a jb-web-selenium specialization.
Should we add @BeforeStep / @AfterStep? or @BeforeStep("regex for which steps?")