Sign in

    crater-webdriver-bidi

    WebDriver BiDi adapter module for crater browser integration

    Download zip
    Author
    Version
    0.17.1
    License
    Apache-2.0
    Last updated
    5 months ago
    Downloads
    58

    #crater-webdriver-bidi

    WebDriver BiDi adapter module for Crater.

    This module contains the BiDi server, protocol adapter, and font-enabled launcher used by Playwright and WPT WebDriver integration.

    ApiMethod

    All API methods as an enum for JSON-RPC dispatch

    BidiServer

    BiDi server state

    BidiServerConfig

    BiDi server configuration

    Capabilities

    Browser capabilities

    CdpHandlerError

    CDP Handler errors

    CdpSessionManager

    Manages CDP sessions for WebDriver

    ErrorCode

    WebDriver error codes as defined in W3C spec

    PageLoadStrategy

    Page load strategy

    ProxyConfig

    Proxy configuration

    Rect

    Rectangle with position and size

    RpcErrorCode

    Standard JSON-RPC error codes

    RpcId

    JSON-RPC request ID (can be string or number)

    RpcRequest

    JSON-RPC request

    RpcResponse

    JSON-RPC response

    Selector

    Element selector strategy

    Session

    Session information

    SessionManager

    Session manager

    SessionState

    Session state

    Timeouts

    Timeout settings

    Viewport

    Viewport size

    WebDriverCommand

    WebDriver commands (endpoints)

    WebDriverError

    WebDriver error response

    WebDriverRequest

    Parsed WebDriver command from HTTP request

    WebDriverResponse

    WebDriver response (success or error)

    WebDriverValue

    WebDriver success value

    WindowRect

    Window rectangle

    handle_element_click

    handle_find_element

    fn handle_find_element(session :
    CdpSession
    , strategy : String, selector : String) -> Result[Int,
    CdpHandlerError
    ]

    handle_find_elements

    fn handle_find_elements(session :
    CdpSession
    , strategy : String, selector : String) -> Result[Array[Int],
    CdpHandlerError
    ]

    handle_get_current_url

    fn handle_get_current_url(session :
    CdpSession
    ) -> String

    handle_get_element_attribute

    fn handle_get_element_attribute(session :
    CdpSession
    , element_id : Int, name : String) -> Result[String?,
    CdpHandlerError
    ]

    handle_get_element_tag_name

    fn handle_get_element_tag_name(session :
    CdpSession
    , element_id : Int) -> Result[String,
    CdpHandlerError
    ]

    handle_get_element_text

    handle_get_title

    fn handle_get_title(session :
    CdpSession
    ) -> String

    parse_method

    fn parse_method(method_name : String) ->
    ApiMethod
    ?

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io