Class PollingBrowserEventCollector
java.lang.Object
com.shaft.capture.collector.PollingBrowserEventCollector
- All Implemented Interfaces:
BrowserEventCollector, AutoCloseable
Classic WebDriver fallback for browsers where BiDi collection is unavailable.
-
Constructor Summary
ConstructorsConstructorDescriptionPollingBrowserEventCollector(org.openqa.selenium.WebDriver driver) Creates a classic WebDriver collector.PollingBrowserEventCollector(org.openqa.selenium.WebDriver driver, boolean reportFallbackWarning) Creates a classic WebDriver collector.PollingBrowserEventCollector(org.openqa.selenium.WebDriver driver, boolean reportFallbackWarning, List<String> testIdAttributes) Creates a classic WebDriver collector. -
Method Summary
-
Constructor Details
-
PollingBrowserEventCollector
public PollingBrowserEventCollector(org.openqa.selenium.WebDriver driver) Creates a classic WebDriver collector.- Parameters:
driver- active driver
-
PollingBrowserEventCollector
public PollingBrowserEventCollector(org.openqa.selenium.WebDriver driver, boolean reportFallbackWarning) Creates a classic WebDriver collector.- Parameters:
driver- active driverreportFallbackWarning- whether status should report reduced BiDi coverage
-
PollingBrowserEventCollector
public PollingBrowserEventCollector(org.openqa.selenium.WebDriver driver, boolean reportFallbackWarning, List<String> testIdAttributes) Creates a classic WebDriver collector.- Parameters:
driver- active driverreportFallbackWarning- whether status should report reduced BiDi coveragetestIdAttributes- locator test-id attributes
-
-
Method Details
-
start
Description copied from interface:BrowserEventCollectorStarts event collection.- Specified by:
startin interfaceBrowserEventCollector- Parameters:
signalConsumer- signal destinationwarningConsumer- safe warning destination
-
close
public void close()Description copied from interface:BrowserEventCollectorStops collection and releases protocol listeners.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceBrowserEventCollector
-