Table of Contents

Class FrameGetByRoleOptions

Namespace
Microsoft.Playwright
Assembly
Microsoft.Playwright.dll
public class FrameGetByRoleOptions
Inheritance
FrameGetByRoleOptions
Inherited Members

Constructors

FrameGetByRoleOptions()

public FrameGetByRoleOptions()

FrameGetByRoleOptions(FrameGetByRoleOptions)

public FrameGetByRoleOptions(FrameGetByRoleOptions clone)

Parameters

clone FrameGetByRoleOptions

Properties

Checked

An attribute that is usually set by aria-checked or native <input type=checkbox> controls.

Learn more about aria-checked.

[JsonPropertyName("checked")]
public bool? Checked { get; set; }

Property Value

bool?

Disabled

An attribute that is usually set by aria-disabled or disabled.

[JsonPropertyName("disabled")]
public bool? Disabled { get; set; }

Property Value

bool?

Remarks

Unlike most other attributes, disabled is inherited through the DOM hierarchy. Learn more about aria-disabled.

Exact

Whether name is matched exactly: case-sensitive and whole-string. Defaults to false. Ignored when name is a regular expression. Note that exact match still trims whitespace.

[JsonPropertyName("exact")]
public bool? Exact { get; set; }

Property Value

bool?

Expanded

An attribute that is usually set by aria-expanded.

Learn more about aria-expanded.

[JsonPropertyName("expanded")]
public bool? Expanded { get; set; }

Property Value

bool?

IncludeHidden

Option that controls whether hidden elements are matched. By default, only non-hidden elements, as defined by ARIA, are matched by role selector.

Learn more about aria-hidden.

[JsonPropertyName("includeHidden")]
public bool? IncludeHidden { get; set; }

Property Value

bool?

Level

A number attribute that is usually present for roles heading, listitem, row, treeitem, with default values for <h1>-<h6> elements.

Learn more about aria-level.

[JsonPropertyName("level")]
public int? Level { get; set; }

Property Value

int?

Name

Option to match the accessible name. By default, matching is case-insensitive and searches for a substring, use exact to control this behavior.

Learn more about accessible name.

[JsonPropertyName("name")]
public string? Name { get; set; }

Property Value

string

NameRegex

Option to match the accessible name. By default, matching is case-insensitive and searches for a substring, use exact to control this behavior.

Learn more about accessible name.

[JsonPropertyName("nameRegex")]
public Regex? NameRegex { get; set; }

Property Value

Regex

NameString

Option to match the accessible name. By default, matching is case-insensitive and searches for a substring, use exact to control this behavior.

Learn more about accessible name.

[JsonPropertyName("nameString")]
public string? NameString { get; set; }

Property Value

string

Pressed

An attribute that is usually set by aria-pressed.

Learn more about aria-pressed.

[JsonPropertyName("pressed")]
public bool? Pressed { get; set; }

Property Value

bool?

Selected

An attribute that is usually set by aria-selected.

Learn more about aria-selected.

[JsonPropertyName("selected")]
public bool? Selected { get; set; }

Property Value

bool?