I'm using IEDriver to test my webapp. My test is written in Java and driver is defined as following:
System.setProperty("webdriver.ie.driver","C:\\Selenium\\IE\\IEDriverServer.exe");
DesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();
capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true);
driver = new InternetExplorerDriver(capabilities);
driver.manage().window().maximize();
I'm facing the problem when the tests simulates F5 after form submission with:
Actions actions = new Actions(driver);
actions.keyDown(Keys.CONTROL).sendKeys(Keys.F5).perform();
As a result appears IE window saying:
I've tried to skip it by performing
actions.keyDown(Keys.CONTROL).sendKeys(Keys.ENTER).perform();
and
driver.switchTo().alert().accept();
As I've understood, this window is not an alert, so driver can not switch to it. So is there any way to execute "Retry" in this window?