selenium - Why .sendKeys(Keys.chord(Keys.CONTROL, "a")) does not work in Chrome -


i trying select text in text field , delete it. use chromedriver linux.

this code:

loginpage.getpasswordfield().sendkeys(keys.chord(keys.control, "a")); loginpage.getpasswordfield().sendkeys(keys.delete); 

but not work (actually first line). why? how make work?

versions: chrome: version 28.0.1500.95 chromedriver: chromedriver_linux64_2.1/chromedriver_linux64_2.2

have tried use action builder? example, our automation suite:

public void selectanddeletetextviakeyboard() {     selecttextviakeyboard()     deleteviakeyboard()  }  public void deleteviakeyboard() {     actions builder = new actions(webdriverproxy.getwebdriver());     builder.sendkeys(keys.delete)             .release().perform(); }  public void selecttextviakeyboard() {     actions builder = new actions(webdriverproxy.getwebdriver());     action select= builder             .keydown(keys.control)             .sendkeys("a")             .keyup(keys.control)             .build();     select.perform();  } 

Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -