-
- All Implemented Interfaces:
-
ai.platon.pulsar.crawl.fetch.driver.WebDriver,kotlin.Comparable
public abstract class AbstractWebDriver implements Comparable<AbstractWebDriver>, WebDriver
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumAbstractWebDriver.Status
-
Field Summary
Fields Modifier and Type Field Description private ProxyEntryproxyEntryprivate InstantlastActiveTimeprivate DurationidleTimeoutprivate Stringurlprivate final BooleansupportJavascriptprivate final BooleanisMockedPageSourceprivate final AtomicReference<AbstractWebDriver.Status>statusprivate final BooleanisFreeprivate final BooleanisWorkingprivate final BooleanisNotWorkingprivate final BooleanisCrashedprivate final BooleanisRetiredprivate final BooleanisCanceledprivate final BooleanisQuitprivate final BrowserInstanceIdbrowserInstanceIdprivate final Integeridprivate final BooleanisIdleprivate final Stringnameprivate final BrowserTypebrowserTypeprivate final StringsessionIdprivate final StringcurrentUrlprivate final StringpageSource
-
Constructor Summary
Constructors Constructor Description AbstractWebDriver(BrowserInstanceId browserInstanceId, Integer id)
-
Method Summary
-
-
Constructor Detail
-
AbstractWebDriver
AbstractWebDriver(BrowserInstanceId browserInstanceId, Integer id)
-
-
Method Detail
-
getProxyEntry
final ProxyEntry getProxyEntry()
-
setProxyEntry
final Unit setProxyEntry(ProxyEntry proxyEntry)
-
getLastActiveTime
Instant getLastActiveTime()
-
setLastActiveTime
Unit setLastActiveTime(Instant lastActiveTime)
-
getIdleTimeout
Duration getIdleTimeout()
-
setIdleTimeout
Unit setIdleTimeout(Duration idleTimeout)
-
getUrl
String getUrl()
The current loading page url The browser might redirect, so it might not be the same with currentUrl
-
setUrl
Unit setUrl(String url)
The current loading page url The browser might redirect, so it might not be the same with currentUrl
-
getSupportJavascript
Boolean getSupportJavascript()
Whether the web driver has javascript support
-
getIsMockedPageSource
Boolean getIsMockedPageSource()
Whether the web page source is mocked
-
getStatus
final AtomicReference<AbstractWebDriver.Status> getStatus()
Driver status
-
getIsWorking
final Boolean getIsWorking()
-
getIsNotWorking
final Boolean getIsNotWorking()
-
getIsCrashed
final Boolean getIsCrashed()
-
getIsRetired
Boolean getIsRetired()
-
getIsCanceled
Boolean getIsCanceled()
-
getBrowserInstanceId
BrowserInstanceId getBrowserInstanceId()
-
getBrowserType
abstract BrowserType getBrowserType()
-
getSessionId
abstract String getSessionId()
-
getCurrentUrl
abstract String getCurrentUrl()
-
getPageSource
abstract String getPageSource()
-
evaluateSilently
Object evaluateSilently(String expression)
-
compareTo
Integer compareTo(AbstractWebDriver other)
-
-
-
-