-
- All Implemented Interfaces:
-
org.openqa.selenium.HasCapabilities,org.openqa.selenium.JavascriptExecutor,org.openqa.selenium.PrintsPage,org.openqa.selenium.SearchContext,org.openqa.selenium.TakesScreenshot,org.openqa.selenium.WebDriver,org.openqa.selenium.interactions.HasInputDevices,org.openqa.selenium.interactions.Interactive,org.openqa.selenium.virtualauthenticator.HasVirtualAuthenticator
public final class ChromeDevtoolsDriver extends RemoteWebDriverTODO: inherit from ai.platon.pulsar.crawl.fetch.driver.WebDriver
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChromeDevtoolsDriver.ShutdownHookRegistry
-
Field Summary
Fields Modifier and Type Field Description private final PathdataDirprivate final StringproxyServerprivate final StringuserAgentprivate final BooleanenableUrlBlockingprivate final StringclientLibJsprivate DevToolsConfigdevToolsConfigprivate final BrowserInstancebrowserInstanceprivate final ChromeTabtabprivate final RemoteDevToolsdevToolsprivate final AtomicIntegernumSessionLostprivate InstantlastActiveTimeprivate final BooleanisGoneprivate final BooleanisActiveprivate final Viewportviewport
-
Constructor Summary
Constructors Constructor Description ChromeDevtoolsDriver(LauncherConfig launcherConfig, ChromeDevtoolsOptions launchOptions, WebDriverSettings browserSettings, BrowserInstanceManager browserInstanceManager)
-
Method Summary
-
Methods inherited from class org.openqa.selenium.remote.RemoteWebDriver
executeScript, getPinnedScripts, pin, unpin -
Methods inherited from class ai.platon.pulsar.protocol.browser.driver.chrome.ChromeDevtoolsDriver
addVirtualAuthenticator, execute, execute, execute, executeAsyncScript, findElement, findElement, findElement, findElements, findElements, findElements, getCapabilities, getCommandExecutor, getElementConverter, getErrorHandler, getExecuteMethod, getFileDetector, getKeyboard, getMouse, getTitle, getWindowHandle, log, manage, navigate, perform, print, removeVirtualAuthenticator, resetInputState, setCommandExecutor, setElementConverter, setErrorHandler, setFileDetector, setFoundBy, setLogLevel, setSessionId, startSession, switchTo -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ChromeDevtoolsDriver
ChromeDevtoolsDriver(LauncherConfig launcherConfig, ChromeDevtoolsOptions launchOptions, WebDriverSettings browserSettings, BrowserInstanceManager browserInstanceManager)
-
-
Method Detail
-
getDataDir
final Path getDataDir()
-
getProxyServer
final String getProxyServer()
-
getUserAgent
final String getUserAgent()
-
getEnableUrlBlocking
final Boolean getEnableUrlBlocking()
-
getClientLibJs
final String getClientLibJs()
-
getDevToolsConfig
final DevToolsConfig getDevToolsConfig()
-
setDevToolsConfig
final Unit setDevToolsConfig(DevToolsConfig devToolsConfig)
-
getBrowserInstance
final BrowserInstance getBrowserInstance()
-
getTab
final ChromeTab getTab()
-
getDevTools
final RemoteDevTools getDevTools()
-
getNumSessionLost
final AtomicInteger getNumSessionLost()
-
getLastActiveTime
final Instant getLastActiveTime()
-
setLastActiveTime
final Unit setLastActiveTime(Instant lastActiveTime)
-
getIsActive
final Boolean getIsActive()
-
getViewport
final Viewport getViewport()
-
stopLoading
final Unit stopLoading()
-
executeScript
Object executeScript(String script, Object args)
-
getSessionId
SessionId getSessionId()
-
getCurrentUrl
String getCurrentUrl()
-
getWindowHandles
Set<String> getWindowHandles()
-
getPageSource
String getPageSource()
-
bringToFront
final Unit bringToFront()
-
getCookieNames
final List<String> getCookieNames()
-
deleteAllCookies
final Unit deleteAllCookies()
-
deleteCookieNamed
final Unit deleteCookieNamed(String name)
-
getScreenshotAs
<X extends Any> X getScreenshotAs(OutputType<X> outputType)
-
-
-
-