-
- All Implemented Interfaces:
-
ai.platon.pulsar.crawl.fetch.driver.Browser,java.lang.AutoCloseable
public final class ChromeDevtoolsBrowser extends AbstractBrowser
-
-
Field Summary
Fields Modifier and Type Field Description private final RemoteChromechromeprivate 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 ChromeDevtoolsBrowser(BrowserInstanceId id, RemoteChrome chrome, ChromeLauncher launcher)
-
Method Summary
Modifier and Type Method Description final RemoteChromegetChrome()final BrowserSettingsgetBrowserSettings()Queue<WebDriver>getDrivers()BrowserInstanceIdgetId()final DurationgetIdleTimeout()final BooleangetIsGUI()BooleangetIsIdle()List<NavigateEntry>getNavigateHistory()ThreadgetShutdownHook()UnitsetShutdownHook(Thread shutdownHook)ObjectgetShutdownMonitor()ChromeDevtoolsDrivernewDriver()final ChromeTabcreateTab()final UnitcloseTab(ChromeTab tab)final Array<ChromeTab>listTabs()Unitclose()-
-
Method Detail
-
getChrome
final RemoteChrome getChrome()
-
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
@Synchronized() ChromeDevtoolsDriver newDriver()
-
createTab
@Synchronized() final ChromeTab createTab()
-
closeTab
@Synchronized() final Unit closeTab(ChromeTab tab)
-
listTabs
@Synchronized() final Array<ChromeTab> listTabs()
-
-
-
-