Expand description
Keyboard key definitions. Keyboard key definitions and utilities.
Provides ergonomic key constants for common navigation and control keys.
§Example
ⓘ
use firefox_webdriver::Key;
// Navigation keys
element.press(Key::Enter).await?;
element.press(Key::Tab).await?;
element.press(Key::Escape).await?;
// For typing text, use type_text instead:
element.type_text("Hello, World!").await?;Enums§
- Key
- Common keyboard keys for navigation and control.