Class MockBrowser
-
- All Implemented Interfaces:
-
ai.platon.pulsar.common.event.EventEmitter,ai.platon.pulsar.skeleton.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 Map<String, Object>dataprivate final Map<String, WebDriver>driversprivate Function1<Throwable, Unit>eventExceptionHandlerprivate final BrowserIdidprivate final DurationidleTimeoutprivate final BooleanisActiveprivate final BooleanisGUIprivate final BooleanisIdleprivate final BooleanisPermanentprivate final Map<BrowserEvents, List<Function<Object>>>listenersprivate final NavigateHistorynavigateHistoryprivate final StringuserAgentprivate StringuserAgentOverride
-
Constructor Summary
Constructors Constructor Description MockBrowser(BrowserId id, BrowserSettings browserSettings, Browser backupBrowser)
-
Method Summary
-
Methods inherited from class ai.platon.pulsar.skeleton.crawl.fetch.driver.AbstractBrowser
clearCookies, close, destroyDriver, destroyForcibly, findDriver, findDrivers, getBrowserSettings, getData, getDrivers, getId, getIdleTimeout, getNavigateHistory, getUserAgent, getUserAgentOverride, isActive, isGUI, isIdle, isPermanent, listDrivers, maintain, onInitialize, onWillNavigate, setUserAgentOverride -
Methods inherited from class ai.platon.pulsar.common.event.AbstractEventEmitter
count, emit, emit, emit, emit, emit1, emit1, emit1, emit1, getEventExceptionHandler, getListeners, hasListeners, listeners, listeners, off, off, off, off, off, off1, off1, off1, off1, off1, on, on, on, on, on1, on1, on1, on1, once, once, once, once1, once1, once1, setEventExceptionHandler -
Methods inherited from class ai.platon.pulsar.common.event.EventEmitter
hasNormalListeners, hasSuspendListeners, normalListeners, normalListeners, suspendListeners, suspendListeners -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-