-
- All Implemented Interfaces:
-
ai.platon.pulsar.crawl.fetch.driver.WebDriver,java.io.Closeable,java.lang.AutoCloseable,kotlin.Comparable
public final class ChromeDevtoolsDriver extends AbstractWebDriver
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChromeDevtoolsDriver.ShutdownHookRegistry
-
Field Summary
Fields Modifier and Type Field Description private final BrowserTypebrowserTypeprivate final IntegeropenSequenceprivate final StringuserAgentprivate final BooleanenableUrlBlockingprivate final StringclientLibJsprivate DevToolsConfigdevToolsConfigprivate final ChromeTabtabprivate final RemoteDevToolsdevToolsprivate final AtomicIntegernumSessionLostprivate InstantlastActiveTimeprivate final BooleanisGoneprivate final BooleanisActiveprivate final Viewportviewportprivate final StringsessionIdprivate final StringcurrentUrlprivate final StringpageSourceprivate final BrowserInstanceIdbrowserInstanceIdprivate final Integeridprivate DurationidleTimeoutprivate final BooleanisCanceledprivate final BooleanisCrashedprivate final BooleanisFreeprivate final BooleanisIdleprivate final BooleanisMockedPageSourceprivate final BooleanisNotWorkingprivate final BooleanisQuitprivate final BooleanisRetiredprivate final BooleanisWorkingprivate final Stringnameprivate ProxyEntryproxyEntryprivate final AtomicReference<AbstractWebDriver.Status>statusprivate final BooleansupportJavascriptprivate Stringurl
-
Constructor Summary
Constructors Constructor Description ChromeDevtoolsDriver(WebDriverSettings browserSettings, BrowserInstance browserInstance)
-
Method Summary
-
Methods inherited from class ai.platon.pulsar.protocol.browser.driver.chrome.ChromeDevtoolsDriver
cancel, compareTo, equals, evaluateSilently, free, hashCode, retire, startWork -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ChromeDevtoolsDriver
ChromeDevtoolsDriver(WebDriverSettings browserSettings, BrowserInstance browserInstance)
-
-
Method Detail
-
getBrowserType
BrowserType getBrowserType()
-
getOpenSequence
final Integer getOpenSequence()
-
getUserAgent
final String getUserAgent()
-
getEnableUrlBlocking
final Boolean getEnableUrlBlocking()
-
getClientLibJs
final String getClientLibJs()
-
getDevToolsConfig
final DevToolsConfig getDevToolsConfig()
-
setDevToolsConfig
final Unit setDevToolsConfig(DevToolsConfig devToolsConfig)
-
getTab
final ChromeTab getTab()
-
getDevTools
final RemoteDevTools getDevTools()
-
getNumSessionLost
final AtomicInteger getNumSessionLost()
-
getLastActiveTime
Instant getLastActiveTime()
-
setLastActiveTime
Unit setLastActiveTime(Instant lastActiveTime)
-
getIsActive
final Boolean getIsActive()
-
getViewport
final Viewport getViewport()
-
getSessionId
String getSessionId()
-
getCurrentUrl
String getCurrentUrl()
-
getPageSource
String getPageSource()
-
getBrowserInstanceId
BrowserInstanceId getBrowserInstanceId()
-
getIdleTimeout
Duration getIdleTimeout()
-
setIdleTimeout
Unit setIdleTimeout(Duration idleTimeout)
-
getIsCanceled
Boolean getIsCanceled()
-
getIsCrashed
final Boolean getIsCrashed()
-
getIsMockedPageSource
Boolean getIsMockedPageSource()
-
getIsNotWorking
final Boolean getIsNotWorking()
-
getIsRetired
Boolean getIsRetired()
-
getIsWorking
final Boolean getIsWorking()
-
getProxyEntry
final ProxyEntry getProxyEntry()
-
setProxyEntry
final Unit setProxyEntry(ProxyEntry proxyEntry)
-
getStatus
final AtomicReference<AbstractWebDriver.Status> getStatus()
-
getSupportJavascript
Boolean getSupportJavascript()
-
setTimeouts
Unit setTimeouts(BrowserSettings driverConfig)
-
navigateTo
Unit navigateTo(String url)
-
stopLoading
Unit stopLoading()
-
getWindowHandles
final Set<String> getWindowHandles()
-
bringToFront
Unit bringToFront()
-
getCookieNames
final List<String> getCookieNames()
-
deleteAllCookies
final Unit deleteAllCookies()
-
deleteCookieNamed
final Unit deleteCookieNamed(String name)
-
getScreenshotAs
final <X extends Any> X getScreenshotAs(OutputType<X> outputType)
-
-
-
-