mizchi/crater-webdriver-bidi/contract does not have a README file
pub(all) enum ApiError {
ElementNotFound(String)
PageNotFound(String)
ContextNotFound(String)
Timeout(String)
NavigationFailed(String, String)
ElementNotVisible(String)
ElementNotEnabled(String)
EvalError(String)
InvalidArgument(String)
NotSupported(String)
InternalError(String)
} derive(Debug)pub(all) enum ApiMethod {
NewContext
CloseContext(String)
NewPage(String)
ClosePage(String)
Pages(String)
Goto(String, String)
GoBack(String)
GoForward(String)
Reload(String)
Url(String)
Title(String)
Query(String, String)
QueryAll(String, String)
WaitFor(String, String, Int)
BoundingBox(String)
TextContent(String)
InnerText(String)
InnerHtml(String)
GetAttribute(String, String)
IsVisible(String)
IsEnabled(String)
IsChecked(String)
Click(String)
DblClick(String)
RightClick(String)
Hover(String)
Focus(String)
Fill(String, String)
Press(String, String)
Clear(String)
SelectOption(String, String)
Check(String)
Uncheck(String)
MouseMove(String, Double, Double)
MouseClick(String, Double, Double, String)
MouseDown(String, String)
MouseUp(String, String)
KeyboardPress(String, String)
KeyboardType(String, String)
Content(String)
SetContent(String, String)
ViewportSize(String)
SetViewportSize(String, Int, Int)
Evaluate(String, String)
Screenshot(String)
ElementScreenshot(String)
AccessibilitySnapshot(String)
} derive(Debug)pub(all) struct Capabilities {
browser_name : String
browser_version : String
platform_name : String
accept_insecure_certs : Bool
page_load_strategy : PageLoadStrategy
proxy : ProxyConfig?
timeouts : Timeouts
} derive(Debug)pub(all) enum ErrorCode {
ElementClickIntercepted
ElementNotInteractable
InsecureCertificate
InvalidArgument
InvalidCookieDomain
InvalidElementState
InvalidSelector
InvalidSessionId
JavascriptError
MoveTargetOutOfBounds
NoSuchAlert
NoSuchCookie
NoSuchElement
NoSuchFrame
NoSuchWindow
ScriptTimeout
SessionNotCreated
StaleElementReference
Timeout
UnableToSetCookie
UnableToCaptureScreen
UnexpectedAlertOpen
UnknownCommand
UnknownError
UnknownMethod
UnsupportedOperation
} derive(Eq, Debug)pub(all) enum Selector {
Css(String)
XPath(String)
Text(String)
TextContains(String)
Role(String, String?)
TestId(String)
Label(String)
Placeholder(String)
AltText(String)
Title(String)
} derive(Debug)pub(all) enum WebDriverCommand {
Status
NewSession
DeleteSession(String)
GetSession(String)
GetTimeouts(String)
SetTimeouts(String)
NavigateTo(String)
GetCurrentUrl(String)
Back(String)
Forward(String)
Refresh(String)
GetTitle(String)
GetWindowHandle(String)
CloseWindow(String)
SwitchToWindow(String)
GetWindowHandles(String)
NewWindow(String)
SwitchToFrame(String)
SwitchToParentFrame(String)
GetWindowRect(String)
SetWindowRect(String)
MaximizeWindow(String)
MinimizeWindow(String)
FullscreenWindow(String)
FindElement(String)
FindElements(String)
FindElementFromElement(String, String)
FindElementsFromElement(String, String)
GetActiveElement(String)
IsElementSelected(String, String)
GetElementAttribute(String, String, String)
GetElementProperty(String, String, String)
GetElementCssValue(String, String, String)
GetElementText(String, String)
GetElementTagName(String, String)
GetElementRect(String, String)
IsElementEnabled(String, String)
ElementClick(String, String)
ElementClear(String, String)
ElementSendKeys(String, String)
GetPageSource(String)
ExecuteScript(String)
ExecuteAsyncScript(String)
GetAllCookies(String)
GetNamedCookie(String, String)
AddCookie(String)
DeleteCookie(String, String)
DeleteAllCookies(String)
PerformActions(String)
ReleaseActions(String)
DismissAlert(String)
AcceptAlert(String)
GetAlertText(String)
SendAlertText(String)
TakeScreenshot(String)
TakeElementScreenshot(String, String)
PrintPage(String)
Unknown(String)
} derive(Debug)impl Show for WebDriverCommandpub(all) struct WebDriverRequest {
http_method : HttpMethod
command : WebDriverCommand
body : String
} derive(Debug)pub(all) enum WebDriverValue {
Null
Bool(Bool)
String(String)
Number(Double)
Array(Array[WebDriverValue])
Object(Map[String, WebDriverValue])
Element(String)
} derive(Debug)