I am trying to select text in the text field and delete it. I use chromedriver for linux.
This is my code:
loginPage.getPasswordField().sendKeys(Keys.chord(Keys.CONTROL, "a"));
loginPage.getPasswordField().sendKeys(Keys.DELETE);
But it does not work (actually first line). Why? How to make it work?
Versions: Chrome: Version 28.0.1500.95 ChromeDriver: chromedriver_linux64_2.1/chromedriver_linux64_2.2
Have you tried to use action builder? For example, from our automation suite:
It should work: