Browser

Read one element's cascade and computed values

The browser_style_get tool's mirror. Names the element as /v1/browser/element does and answers its matching rules (winning first, each declaration marked applied or overridden, located in its stylesheet and source-mapped original), inherited rules and computed values. Read-only.

post/v1/browser/style

Request

  • Base URL: http://localhost:9998
  • URL: http://localhost:9998/v1/browser/style
  • Auth: HTTP bearer

Request body

backendNodeIdinteger

A browser_snapshot node's backendDOMNodeId (preferred)

uidstring

A browser_snapshot node's id

selectorstring

A Piper selector matching one element (role:, label:, testid:, text:, css:)

xnumber

Viewport x coordinate, with y

ynumber

Viewport y coordinate, with x

propertiesstring[]

Computed properties to return (default the declared ones plus a core set)

userAgentboolean

Include the browser's own user-agent rules (default false)

inheritedboolean

Include rules inherited from ancestors (default true)

Response

The element's styles

backendNodeIdinteger required
tagNamestring required
computedobject[] required
rulesobject[] required
inheritedobject[] required
truncatedboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.