diff --git a/index.html b/index.html index d30518881..b5c5ff0b6 100644 --- a/index.html +++ b/index.html @@ -158,6 +158,7 @@

Dependencies

  • NodeList
  • querySelectorAll
  • querySelector +
  • shadowRoot
  • tagName
  • Text node @@ -1325,6 +1326,12 @@

    List of Endpoints

    Switch To Parent Frame + + POST + /session/{session id}/shadow + Switch to Shadow DOM + + GET /session/{session id}/window/rect @@ -1724,6 +1731,13 @@

    Handling Errors

    using the given search parameters. + + no such shadow dom + 404 + no such shadow dom + The element does not have a Shadow DOM attached to it. + + no such frame 404 @@ -3761,6 +3775,73 @@

    Get Window Handles

    +
    +

    Switch to Shadow DOM

    + + + + + + + + + + +
    HTTP MethodURI Template
    POST/session/{session id}/shadow
    + +

    The remote end steps are: + +

      + +
    1. Let id be the result of + getting the property "id" + from the parameters argument. + +

    2. If id is not null, + or an Object that represents a web element, + return error with error code no such shadow dom. + +

    3. If the current browsing context is no longer open, + return error with error code no such window. + +

    4. Handle any user prompts + and return its value if it is an error. + +

    5. Run the substeps of the first matching condition: + +

      +
      id is null +
      +
        +
      1. Set the current browsing context to + the current top-level browsing context. +

      + +
      id represents a web element +
      +
        +
      1. Let element be the result + of trying to get a known element + by web element reference id. + +

      2. If element is stale, + return error with error code stale element reference. + +

      3. Let shadowRoot be the result of getting + element's shadowRoot. + +

      4. If shadowRoot is null + return error with error code no such shadow dom. + +

      5. Set the current browsing context to element’s + shadowRoot. +

      +
      + +
    6. Return success with data null. +

    +
    +

    Switch To Frame