Class MockBrowser
-
- All Implemented Interfaces:
-
ai.platon.pulsar.common.event.EventEmitter,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 ScriptConfuserconfuserprivate final Map<String, Object>dataprivate final Map<String, WebDriver>driversprivate Function1<Throwable, Unit>eventExceptionHandlerprivate final BrowserIdidprivate final DurationidleTimeoutprivate final BooleanisGUIprivate final BooleanisIdleprivate final Map<BrowserEvents, List<Function<Object>>>listenersprivate final NavigateHistorynavigateHistoryprivate final ScriptLoaderscriptLoaderprivate final StringuserAgent
-
Constructor Summary
Constructors Constructor Description MockBrowser(BrowserId id, LauncherOptions launcherOptions)
-
Method Summary
Modifier and Type Method Description WebDrivernewDriver()-
Methods inherited from class ai.platon.pulsar.crawl.fetch.driver.AbstractBrowser
clearCookies, close, destroyDriver, destroyForcibly, getBrowserSettings, getConfuser, getData, getDrivers, getId, getIdleTimeout, getNavigateHistory, getScriptLoader, getUserAgent, isGUI, isIdle, maintain, onInitialize, onWillNavigate -
Methods inherited from class ai.platon.pulsar.common.event.AbstractEventEmitter
getEventExceptionHandler, getListeners, setEventExceptionHandler -
Methods inherited from class ai.platon.pulsar.common.event.EventEmitter
count, emit, emit, emit, emit, emit1, emit1, emit1, emit1, hasListeners, hasNormalListeners, hasSuspendListeners, listeners, listeners, normalListeners, normalListeners, off, off, off, off, off, off1, off1, off1, off1, off1, on, on, on, on, on1, on1, on1, on1, once, once, once, once1, once1, once1, suspendListeners, suspendListeners -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
newDriver
WebDriver newDriver()
-
-
-
-