async_core library

Classes

Alert
A JavaScript alert(), confirm(), or prompt() dialog
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(AsyncRequestClient createRequestClient(Uri prefix), {Uri? uri, Map<String, dynamic>? desired, WebDriverSpec spec = WebDriverSpec.Auto}) Future<WebDriver>
Creates a new async WebDriver.
fromExistingSession(AsyncRequestClient createRequestClient(Uri prefix), String sessionId, {Uri? uri, WebDriverSpec spec = WebDriverSpec.Auto}) Future<WebDriver>
Creates an async WebDriver from existing session.
fromExistingSessionSync(AsyncRequestClient createRequestClient(Uri prefix), String sessionId, WebDriverSpec spec, {Uri? uri, Map<String, dynamic>? capabilities}) WebDriver
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.

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