webdriver.sync_core library Null safety
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.
- Cookie
- Browser cookie.
- Cookies
- Interacts with browser's cookies.
- Keyboard
- LogEntry
- LogLevel
- Logs
- LogType
- Mouse
- MouseButton
- Common mouse button for webdriver.
- SearchContext
- TargetLocator
- Timeouts
- Sets WebDriver timeouts.
- WebDriver
- Interacts with WebDriver.
- WebDriverCommandEvent
- WebElement
- WebDriver representation and interactions with an HTML element.
- Window
- Handle to window.
Constants
- jsonWireElementStr → const String
-
'ELEMENT'
- w3cElementStr → const String
-
'element-6066-11e4-a52e-4f735466cecf'
Properties
- defaultUri → Uri
-
final
Functions
-
createDriver(
SyncRequestClient createRequestClient(Uri prefix), {Uri? uri, Map< String, dynamic> ? desired, WebDriverSpec spec = WebDriverSpec.Auto}) → WebDriver - Creates a new sync WebDriver.
-
fromExistingSession(
String sessionId, SyncRequestClient createRequestClient(Uri prefix), {Uri? uri, WebDriverSpec spec = WebDriverSpec.Auto, Map< String, dynamic> ? capabilities}) → WebDriver - Creates a sync WebDriver from existing session.
-
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 = 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