-
- All Implemented Interfaces:
-
ai.platon.pulsar.crawl.fetch.driver.WebDriver,kotlin.Comparable
public final class WebDriverAdapter extends AbstractWebDriver
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classWebDriverAdapter.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Stringnameprivate final AtomicIntegerpageViewsprivate final StringcurrentUrlprivate final StringpageSourceprivate final StringsessionIdprivate final BrowserTypebrowserTypeprivate final BooleansupportJavascriptprivate final BooleanisMockedPageSourceprivate final WebDriverdriverprivate final Integerpriorityprivate final BrowserInstanceIdbrowserInstanceIdprivate final Integeridprivate DurationidleTimeoutprivate final BooleanisCanceledprivate final BooleanisCrashedprivate final BooleanisFreeprivate final BooleanisIdleprivate final BooleanisNotWorkingprivate final BooleanisQuitprivate final BooleanisRetiredprivate final BooleanisWorkingprivate InstantlastActiveTimeprivate ProxyEntryproxyEntryprivate final AtomicReference<AbstractWebDriver.Status>statusprivate Stringurl
-
Constructor Summary
Constructors Constructor Description WebDriverAdapter(BrowserInstanceId browserInstanceId, WebDriver driver, Integer priority)
-
Method Summary
-
Methods inherited from class ai.platon.pulsar.protocol.browser.driver.WebDriverAdapter
cancel, compareTo, equals, evaluateSilently, free, hashCode, retire, startWork, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
WebDriverAdapter
WebDriverAdapter(BrowserInstanceId browserInstanceId, WebDriver driver, Integer priority)
-
-
Method Detail
-
getPageViews
final AtomicInteger getPageViews()
-
getCurrentUrl
String getCurrentUrl()
-
getPageSource
String getPageSource()
-
getSessionId
String getSessionId()
-
getBrowserType
BrowserType getBrowserType()
-
getSupportJavascript
Boolean getSupportJavascript()
-
getIsMockedPageSource
Boolean getIsMockedPageSource()
-
getDriver
final WebDriver getDriver()
-
getPriority
final Integer getPriority()
-
getBrowserInstanceId
BrowserInstanceId getBrowserInstanceId()
-
getIdleTimeout
Duration getIdleTimeout()
-
setIdleTimeout
Unit setIdleTimeout(Duration idleTimeout)
-
getIsCanceled
Boolean getIsCanceled()
-
getIsCrashed
final Boolean getIsCrashed()
-
getIsNotWorking
final Boolean getIsNotWorking()
-
getIsRetired
Boolean getIsRetired()
-
getIsWorking
final Boolean getIsWorking()
-
getLastActiveTime
Instant getLastActiveTime()
-
setLastActiveTime
Unit setLastActiveTime(Instant lastActiveTime)
-
getProxyEntry
final ProxyEntry getProxyEntry()
-
setProxyEntry
final Unit setProxyEntry(ProxyEntry proxyEntry)
-
getStatus
final AtomicReference<AbstractWebDriver.Status> getStatus()
-
navigateTo
Unit navigateTo(String url)
Navigate to the url The browser might redirect, so it might not be the same to currentUrl
-
bringToFront
Unit bringToFront()
-
stopLoading
Unit stopLoading()
-
setTimeouts
Unit setTimeouts(BrowserSettings driverConfig)
-
-
-
-