public interface PageCrawler
To use, you only have to inject PageCrawler and call
start():
@Autowired
private PageCrawler pageCrawler;
@Test
public void browse() {
//webDriver will be autowired by spring
pageCrawler.start();
//or specify webDriver
pageCrawler.start(webDriver);
}
Additionally, you must declare a page handler with url mappings. For that see
PageHandler.
| Modifier and Type | Method and Description |
|---|---|
void |
start()
This method will crawl all applicable urls with
WebDriver
resolved by spring context. |
void |
start(org.openqa.selenium.WebDriver webDriver)
This method will crawl all applicable urls with specified
WebDriver. |
Copyright © 2016. All rights reserved.