gleewright/role

ARIA roles, used to locate elements with page.get_by_role.

Types

An ARIA role.

pub type Role {
  Alert
  AlertDialog
  Application
  Article
  Banner
  Blockquote
  Button
  Caption
  Cell
  Checkbox
  Code
  ColumnHeader
  ComboBox
  Complementary
  ContentInfo
  Definition
  Deletion
  Dialog
  Directory
  Document
  Emphasis
  Feed
  Figure
  Form
  Generic
  Grid
  GridCell
  Group
  Heading
  Img
  Insertion
  Link
  List
  ListBox
  ListItem
  Log
  Main
  Marquee
  Math
  Meter
  Menu
  MenuBar
  MenuItem
  MenuItemCheckbox
  MenuItemRadio
  Navigation
  None
  Note
  Option
  Paragraph
  Presentation
  ProgressBar
  Radio
  RadioGroup
  Region
  Row
  RowGroup
  RowHeader
  ScrollBar
  Search
  SearchBox
  Separator
  Slider
  SpinButton
  Status
  Strong
  Subscript
  Superscript
  Switch
  Tab
  Table
  TabList
  TabPanel
  Term
  TextBox
  Time
  Timer
  Toolbar
  Tooltip
  Tree
  TreeGrid
  TreeItem
}

Constructors

  • Alert
  • AlertDialog
  • Application
  • Article
  • Banner
  • Blockquote
  • Button
  • Caption
  • Cell
  • Checkbox
  • Code
  • ColumnHeader
  • ComboBox
  • Complementary
  • ContentInfo
  • Definition
  • Deletion
  • Dialog
  • Directory
  • Document
  • Emphasis
  • Feed
  • Figure
  • Form
  • Generic
  • Grid
  • GridCell
  • Group
  • Heading
  • Img
  • Insertion
  • Link
  • List
  • ListBox
  • ListItem
  • Log
  • Main
  • Marquee
  • Math
  • Meter
  • Menu
  • MenuBar
  • MenuItem
  • MenuItemCheckbox
  • MenuItemRadio
  • Navigation
  • None
  • Note
  • Option
  • Paragraph
  • Presentation
  • ProgressBar
  • Radio
  • RadioGroup
  • Region
  • Row
  • RowGroup
  • RowHeader
  • ScrollBar
  • Search
  • SearchBox
  • Separator
  • Slider
  • SpinButton
  • Status
  • Strong
  • Subscript
  • Superscript
  • Switch
  • Tab
  • Table
  • TabList
  • TabPanel
  • Term
  • TextBox
  • Time
  • Timer
  • Toolbar
  • Tooltip
  • Tree
  • TreeGrid
  • TreeItem

Values

pub fn to_string(role: Role) -> String

The ARIA name of a role, e.g. "button" for Button.

✨ Search Document