Closed ZaziroZ closed 7 years ago
Just use inputField.clear();
But this works fine in regular drivers.
Okay, in this case inputField.clear(); can do. But doesn't it mean that other Keys commands do not work with jBrowserDriver as well?
Haven't tested this but maybe inputField.sendKeys(Keys.chord(Keys.CONTROL + "a") + Keys.DELETE)
or inputField.sendKeys(Keys.chord(Keys.CONTROL + "a")); inputField.sendKeys(Keys.DELETE)
If other drivers handle sendKeys(Keys.CONTROL + "a", Keys.DELETE)
this one should too.
Hello there,
Let's assume there is some input WebElement inputField;
Command
inputField.sendKeys(Keys.CONTROL + "a", Keys.DELETE)
should select all and then delete everything in the input fieldInstead, jBrowserDriver types "a" into the field.
Regards