-
- All Implemented Interfaces:
-
ai.platon.pulsar.crawl.fetch.driver.Browser,java.lang.AutoCloseable
public final class MockBrowser extends AbstractBrowser
-
-
Field Summary
Fields Modifier and Type Field Description private final BrowserSettingsbrowserSettingsprivate final Queue<WebDriver>driversprivate final BrowserInstanceIdidprivate final DurationidleTimeoutprivate final BooleanisGUIprivate final BooleanisIdleprivate final List<NavigateEntry>navigateHistoryprivate ThreadshutdownHookprivate final ObjectshutdownMonitor
-
Constructor Summary
Constructors Constructor Description MockBrowser(BrowserInstanceId id, LauncherOptions launcherOptions)
-
Method Summary
Modifier and Type Method Description final BrowserSettingsgetBrowserSettings()Queue<WebDriver>getDrivers()BrowserInstanceIdgetId()final DurationgetIdleTimeout()final BooleangetIsGUI()BooleangetIsIdle()List<NavigateEntry>getNavigateHistory()ThreadgetShutdownHook()UnitsetShutdownHook(Thread shutdownHook)ObjectgetShutdownMonitor()WebDrivernewDriver()-
-
Method Detail
-
getBrowserSettings
final BrowserSettings getBrowserSettings()
-
getDrivers
Queue<WebDriver> getDrivers()
-
getId
BrowserInstanceId getId()
-
getIdleTimeout
final Duration getIdleTimeout()
-
getNavigateHistory
List<NavigateEntry> getNavigateHistory()
-
getShutdownHook
Thread getShutdownHook()
-
setShutdownHook
Unit setShutdownHook(Thread shutdownHook)
-
getShutdownMonitor
Object getShutdownMonitor()
-
newDriver
WebDriver newDriver()
-
-
-
-