mizchi/crater-webdriver-bidi/webdriver 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 BidiServerConfig {
host : String
port : Int
auth_token : String
}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 enum CdpHandlerError {
NoSuchElement(String)
InvalidSelector(String)
NavigationFailed(String, String)
InternalCdpError(String)
} derive(Debug)impl Show for CdpHandlerErrorfn CdpSessionManager::create_session_with_id(self : CdpSessionManager, session_id : String) -> Stringpub(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 struct Executor {
manager : CdpSessionManager
logging_enabled : Bool
operation_log : Array[String]
}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)fn SessionManager::handle_request(self : SessionManager, request : WebDriverRequest) -> (Int, WebDriverResponse)pub(all) struct SessionState {
id : String
capabilities : Capabilities
current_url : String
title : String
window_rect : WindowRect
}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)fn delete_runtime_handle(handle_id : String) -> Unitfn eval_and_send_async(socket : Any, request_id : Int, expression : String, ctx_id : String) -> Unitfn evaluate_js(expression : String) -> Stringfn get_runtime_anchor_download_attr_by_id(anchor_id : String) -> String?fn get_runtime_anchor_href_by_id(anchor_id : String) -> String?fn get_runtime_href_at_point(x : Double, y : Double) -> String?fn get_runtime_inline_navigation_url(attribute_name : String) -> String?fn get_runtime_last_click_href() -> String?fn get_runtime_shared_node_at_point(x : Double, y : Double) -> String?fn get_runtime_shared_node_center_json(shared_id : String) -> Stringfn get_runtime_shared_node_href(shared_id : String) -> String?fn get_runtime_url_query_param(url : String, key : String) -> String?fn handle_find_element(session : CdpSession, strategy : String, value : String) -> Result[Int, CdpHandlerError]fn handle_find_elements(session : CdpSession, strategy : String, value : String) -> Result[Array[Int], CdpHandlerError]fn handle_get_element_attribute(session : CdpSession, element_id : Int, name : String) -> Result[String?, CdpHandlerError]fn handle_get_element_tag_name(session : CdpSession, element_id : Int) -> Result[String, CdpHandlerError]fn handle_get_element_text(session : CdpSession, element_id : Int) -> Result[String, CdpHandlerError]fn has_runtime_handle(handle_id : String) -> Boolfn has_runtime_shared_node(shared_id : String) -> Boolfn input_clear_pointer_event_properties() -> Unitfn input_dispatch_drag_event(shared_id : String, event_type : String, x : Double, y : Double, button : Int, buttons : Int, pointer_type : String, ctrl : Bool, alt : Bool, shift : Bool, meta : Bool, related_shared_id : String, drag_transfer_id : String) -> Boolfn input_dispatch_key_action(action_type : String, raw_value : String, ctrl : Bool, alt : Bool, shift : Bool, meta : Bool) -> Unitfn input_dispatch_pointer_event(shared_id : String, event_type : String, x : Double, y : Double, button : Int, buttons : Int, pointer_type : String, ctrl : Bool, alt : Bool, shift : Bool, meta : Bool) -> Unitfn input_dispatch_pointer_event_with_related(shared_id : String, event_type : String, x : Double, y : Double, button : Int, buttons : Int, pointer_type : String, ctrl : Bool, alt : Bool, shift : Bool, meta : Bool, related_shared_id : String) -> Unitfn input_dispatch_wheel_event(shared_id : String, x : Double, y : Double, delta_x : Double, delta_y : Double, ctrl : Bool, alt : Bool, shift : Bool, meta : Bool) -> Unitfn input_is_mac_platform() -> Boolfn input_is_single_grapheme(value : String) -> Boolfn input_set_pointer_event_properties(width : Double, height : Double, pressure : Double, tangential_pressure : Double, twist : Double, altitude_angle : Double, azimuth_angle : Double) -> Unitfn mark_quickjs_initialized() -> Unitfn parse_data_url(url : String) -> (String, String)?fn quickjs_eval_sync(expression : String) -> Stringfn reset_paint_provider() -> Unitfn reset_runtime_event_buffers(ctx_id : String) -> Unitfn rpc_error_with_data(id : RpcId, code : RpcErrorCode, message : String, data : String) -> RpcResponsefn runtime_shared_node_is_document(shared_id : String) -> Boolfn runtime_shared_node_is_draggable(shared_id : String) -> Boolfn runtime_shared_node_is_element(shared_id : String) -> Boolfn runtime_shared_node_is_shadow_root(shared_id : String) -> Boolfn runtime_write_text_file(path : String, content : String) -> Unitfn set_runtime_context(ctx_id : String) -> Unitfn set_runtime_context_locale(ctx_id : String, locale : String) -> Unitfn set_runtime_context_network_online(ctx_id : String, is_online : Bool) -> Unitfn set_runtime_context_screen_area(ctx_id : String, width : Int, height : Int, avail_width : Int, avail_height : Int) -> Unitfn set_runtime_context_screen_orientation(ctx_id : String, orientation_type : String, angle : Int) -> Unitfn set_runtime_context_user_agent(ctx_id : String, user_agent : String) -> Unitfn set_runtime_context_viewport(ctx_id : String, width : Int, height : Int, device_pixel_ratio : Double) -> Unitfn sync_runtime_html(html : String, base_url : String, execute_scripts : Bool) -> Unitfn take_channel_messages_json() -> Stringfn warmup_glyph_cache() -> Unit