I want to press the Enter/Cancel button on a security certificate which is shown while the application is loaded. It is a single-Sign-On (SSO Enabled).
Have a look at this Similar Post.
The below code works fine in IE and Firefox, but not in google chrome.
Alert alert = driver.switchTo().alert();
Robot a = new Robot();
a.keyPress(KeyEvent.VK_ENTER);
a.keyPress(KeyEvent.VK_CANCEL);
I am using java with selenium webdriver.
Chrome version : 37.0.2062.120