Reputation: 23
How can I clear a text box field for safaridriver using webdriver?
I used this below command which only works for chrome and Firefox but does not work for safari.
driver.findElement(By.id("userEmail")).clear();
Upvotes: 0
Views: 1212
Reputation: 6866
Clear the element using
function name()
{
document.getElementById('elementid').value = "";
}
Upvotes: -1