Package com.crawljax.core.plugin
Interface OnNewStatePlugin
-
- All Superinterfaces:
Plugin
- All Known Implementing Classes:
ClickableDetectorPlugin,FragmentationPlugin
public interface OnNewStatePlugin extends Plugin
Plugin type that is called every time a new state is found by Crawljax. This also happens for the Index State. Example: DOM validation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonNewState(CrawlerContext context, StateVertex newState)Method that is called when a new state is found.
-
-
-
Method Detail
-
onNewState
void onNewState(CrawlerContext context, StateVertex newState)
Method that is called when a new state is found. When this method is called the state is already added to theStateFlowGraph.This method can be called from multiple threads with different
CrawlerContext- Parameters:
context- the current context.newState- The new state. Equivalent toCrawlerContext.getCurrentState().
-
-