@@ -0,0 +1,883 @@
+package me.alb_i986.selenium.tinafw.pages;%0A%0Aimport me.alb_i986.selenium.tinafw.domain.SupportedBrowser;%0A%0Aimport org.openqa.selenium.WebDriver;%0A%0A/**%0A * Decorate a WebDriver so that it can handle the certificate%0A * error page that IE displays when navigating to a website%0A * with https, but with an invalid certificate (e.g. self-signed).%0A * See also e.g. http://stackoverflow.com/questions/7710619%0A */%0Apublic class WebDriverFactoryDecoratorHandleCertErrOnIE extends WebDriverFactoryDecorator %7B%0A%0A%09public WebDriverFactoryDecoratorHandleCertErrOnIE(WebDriverFactory decoratingFactory) %7B%0A%09%09super(decoratingFactory);%0A%09%7D%0A%0A%09@Override%0A%09public WebDriver getWebDriver() %7B%0A%09%09WebDriver driver = super.getWebDriver();%0A%09%09if(BROWSER_TYPE == SupportedBrowser.IE) %7B%0A%09%09%09// here is the trick in JS%0A%09%09%09driver.get(%22javascript:document.getElementById('overridelink').click();%22);%0A%09%09%7D%0A%09%09return driver;%0A%09%7D%0A%0A%7D%0A

add WebDriverFactoryDecoratorHandleCertErrOnIE