I am using Selenium webdriver (Java) and ran into a problem.
I made the method,
public void escape() {
Actions action = new Actions(driver);
action.sendKeys(Keys.ESCAPE).build().perform();
}
but it does not work for Safari. It works for all other browsers (IE, Firefox, Chrome) except Safari. What will be the alternate escape method for Safari using selenium?