Select all and replace text with the keyboard
Automation taskMediumAsked in: Accenture, Capgemini, Infosys, TCS, Wipro
Asked as: "How do you press Ctrl+A, Backspace or Enter in Selenium?" Send special keys to the field from the Keys class. Remember that the shortcut uses Cmd instead of Ctrl on a Mac. Here you type Hello World into a field, select all, delete it, type Selenium and print the final value.