webdriver.io library Null safety

Classes

Alert
A JavaScript alert(), confirm(), or prompt() dialog
AsyncIoRequestClient
Async request client using dart:io package.
Attributes
Simple class to provide access to indexed properties such as WebElement attributes or css styles.
Browser
Browser name constants.
BrowserPlatform
Browser operating system constants.
By
Capabilities
Capabilities constants.
Browser cookie.
Cookies
Keyboard
LogEntry
LogLevel
Logs
LogType
Mouse
MouseButton
Common mouse button for webdriver.
SearchContext
TargetLocator
Timeouts
WebDriver
WebDriverCommandEvent
WebElement
Window

Properties

defaultUri Uri
final

Functions

createDriver({Uri? uri, Map<String, dynamic>? desired, WebDriverSpec spec = core.WebDriverSpec.Auto, Map<String, String> webDriverHeaders = const {}}) Future<WebDriver>
Creates a new async WebDriver using AsyncIoRequestClient.
fromExistingSession(String sessionId, {Uri? uri, WebDriverSpec spec = core.WebDriverSpec.Auto}) Future<WebDriver>
Creates an async WebDriver from existing session using AsyncIoRequestClient.
fromExistingSessionSync(String sessionId, WebDriverSpec spec, {Uri? uri, Map<String, dynamic>? capabilities}) WebDriver
Creates an async WebDriver from existing session with a sync function using AsyncIoRequestClient.
getExceptionFromJsonWireResponse({int? httpStatusCode, String? httpReasonPhrase, dynamic jsonResp}) WebDriverException
Temporary method to emulate the original json wire exception parsing logic.
getExceptionFromW3cResponse({int? httpStatusCode, String? httpReasonPhrase, dynamic jsonResp}) WebDriverException
Temporary method to emulate the original w3c exception parsing logic.

Enums

WebDriverSpec
Defines the WebDriver spec to use. Auto = try to infer the spec based on the response during session creation.

Typedefs

GetAttribute = Future<String?> Function(String name)

Exceptions / Errors

ElementClickInterceptedException
The Element Click command could not be completed because the element receiving the events is obscuring the element that was requested clicked.
ElementIsNotSelectableException
ElementNotInteractableException
A command could not be completed because the element is not pointer- or keyboard interactable.
ElementNotVisibleException
IMEEngineActivationFailedException
IMENotAvailableException
InsecureCertificateException
Navigation caused the user agent to hit a certificate warning, which is usually the result of an expired or invalid TLS certificate.
InvalidArgumentException
InvalidCookieDomainException
InvalidElementCoordinatesException
InvalidElementStateException
InvalidRequestException
InvalidResponseException
InvalidSelectorException
InvalidSessionIdException
Occurs if the given session id is not in the list of active sessions, meaning the session either does not exist or that it’s not active.
JavaScriptException
MoveTargetOutOfBoundsException
NoSuchAlertException
NoSuchCookieException
No cookie matching the given path name was found amongst the associated cookies of the current browsing context’s active document.
NoSuchDriverException
NoSuchElementException
NoSuchFrameException
NoSuchWindowException
ScriptTimeoutException
SessionNotCreatedException
StaleElementReferenceException
TimeoutException
UnableToCaptureScreenException
A screen capture was made impossible.
UnableToSetCookieException
UnexpectedAlertOpenException
UnknownCommandException
UnknownException
UnknownMethodException
The requested command matched a known URL but did not match an method for that URL.
UnsupportedOperationException
Indicates that a command that should have executed properly cannot be supported for some reason.
WebDriverException
Base exception for anything unexpected happened in Web Driver requests.
XPathLookupException