webdriver.core library

Classes

Alert
JavaScript Alert(),confirm()或提示()对话框
Attributes
提供访问索引属性(例如WebElement属性或CSS样式)的简单类.
Browser
浏览器名称常量.
BrowserPlatform
浏览器操作系统常数.
By
Capabilities
能力常数.
浏览器cookie.
Cookies
Keyboard
LogEntry
LogLevel
Logs
LogType
Mouse
MouseButton
Webdriver的通用鼠标按钮. [...]
SearchContext
TargetLocator
Timeouts
WebDriver
WebDriverCommandEvent
WebElement
Window

Properties

defaultUri Uri
final

Functions

createDriver(AsyncRequestClient createRequestClient(Uri prefix), {Uri uri, Map<String, dynamic> desired, WebDriverSpec spec: WebDriverSpec.Auto}) Future<WebDriver>
创建一个新的异步WebDriver. [...]
fromExistingSession(AsyncRequestClient createRequestClient(Uri prefix), String sessionId, {Uri uri, WebDriverSpec spec: WebDriverSpec.Auto}) Future<WebDriver>
从现有会话创建异步WebDriver. [...]
fromExistingSessionSync(AsyncRequestClient createRequestClient(Uri prefix), String sessionId, WebDriverSpec spec, {Uri uri, Map<String, dynamic> capabilities}) WebDriver
使用同步功能从现有会话创建异步WebDriver. [...]
getExceptionFromJsonWireResponse({int httpStatusCode, String httpReasonPhrase, dynamic jsonResp}) WebDriverException
模仿原始json线路异常解析逻辑的临时方法.
getExceptionFromW3cResponse({int httpStatusCode, String httpReasonPhrase, dynamic jsonResp}) WebDriverException
模仿原始w3c异常解析逻辑的临时方法.

Enums

WebDriverSpec
定义要使用的WebDriver规范. 自动=尝试根据会话创建期间的响应来推断规格.

Typedefs

GetAttribute(String name) Future<String>

Exceptions / Errors

ElementClickInterceptedException
无法完成"元素点击"命令,因为接收事件的元素遮盖了请求单击的元素.
ElementIsNotSelectableException
ElementNotInteractableException
由于该元素不可与指针或键盘交互,因此无法完成命令.
ElementNotVisibleException
IMEEngineActivationFailedException
IMENotAvailableException
InsecureCertificateException
导航导致用户代理命中证书警告,这通常是TLS证书过期或无效的结果.
InvalidArgumentException
InvalidCookieDomainException
InvalidElementCoordinatesException
InvalidElementStateException
InvalidRequestException
InvalidResponseException
InvalidSelectorException
InvalidSessionIdException
如果给定的会话ID不在活动会话列表中,则发生,这意味着该会话不存在或未处于活动状态.
JavaScriptException
MoveTargetOutOfBoundsException
NoSuchAlertException
NoSuchCookieException
在当前浏览上下文的活动文档的关联cookie中未找到与给定路径名匹配的cookie.
NoSuchDriverException
NoSuchElementException
NoSuchFrameException
NoSuchWindowException
ScriptTimeoutException
SessionNotCreatedException
StaleElementReferenceException
TimeoutException
UnableToCaptureScreenException
屏幕截图变得不可能.
UnableToSetCookieException
UnexpectedAlertOpenException
UnknownCommandException
UnknownException
UnknownMethodException
请求的命令与已知URL匹配,但与该URL的方法不匹配.
UnsupportedOperationException
表示由于某些原因,本应正确执行的命令不受支持.
WebDriverException
Web驱动程序请求中发生的任何意外异常的基本异常.
XPathLookupException