async_core library

Enums

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

Properties

defaultUri Uri
final

Functions

addAppiumPrefix(Map<String, dynamic> desired) Map<String, dynamic>
Returns desired capabilities with appium prefix
createDriver(AsyncRequestClient createRequestClient(Uri prefix), {Uri? uri, required Map<String, dynamic> desired, WebDriverSpec spec = WebDriverSpec.Auto}) Future<AppiumWebDriver>
Creates a new async WebDriver.
fromExistingSession(AsyncRequestClient createRequestClient(Uri prefix), String sessionId, {Uri? uri, WebDriverSpec spec = WebDriverSpec.Auto}) Future<AppiumWebDriver>
Creates a sync WebDriver from existing session.
fromExistingSessionSync(AsyncRequestClient createRequestClient(Uri prefix), String sessionId, WebDriverSpec spec, {Uri? uri, Map<String, dynamic>? capabilities}) AppiumWebDriver
Creates an async WebDriver from existing session with a sync function.
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.
updateUriWithDirectConnect(Uri currentUri, Map<String, dynamic> capabilities) Uri
Return new URI which has been applied directXxxxx

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