-
- All Implemented Interfaces:
-
java.lang.AutoCloseable
public abstract class BrowserInstance implements AutoCloseable
Created by vincent on 18-1-1. Copyright @ 2013-2017 Platon AI. All rights reserved
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanisGUIprivate AtomicIntegertabCountprivate final List<NavigateEntry>navigateHistoryprivate InstantactiveTimeprivate final DurationidleTimeoutprivate final BooleanisIdleprivate final BrowserInstanceIdidprivate final LauncherOptionslauncherOptionsprivate final ChromeOptionslaunchOptions
-
Constructor Summary
Constructors Constructor Description BrowserInstance(BrowserInstanceId id, LauncherOptions launcherOptions, ChromeOptions launchOptions)
-
Method Summary
Modifier and Type Method Description final BooleangetIsGUI()final AtomicIntegergetTabCount()final UnitsetTabCount(AtomicInteger tabCount)final List<NavigateEntry>getNavigateHistory()final InstantgetActiveTime()final UnitsetActiveTime(Instant activeTime)final DurationgetIdleTimeout()final BooleangetIsIdle()final BrowserInstanceIdgetId()final LauncherOptionsgetLauncherOptions()final ChromeOptionsgetLaunchOptions()abstract Unitlaunch()-
-
Method Detail
-
getTabCount
final AtomicInteger getTabCount()
-
setTabCount
final Unit setTabCount(AtomicInteger tabCount)
-
getNavigateHistory
final List<NavigateEntry> getNavigateHistory()
-
getActiveTime
final Instant getActiveTime()
-
setActiveTime
final Unit setActiveTime(Instant activeTime)
-
getIdleTimeout
final Duration getIdleTimeout()
-
getId
final BrowserInstanceId getId()
-
getLauncherOptions
final LauncherOptions getLauncherOptions()
-
getLaunchOptions
final ChromeOptions getLaunchOptions()
-
-
-
-