Created
October 23, 2013 11:20
-
-
Save lfryc/7116820 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ArquillianExtension implements LoadableExtension { | |
@Override | |
public void register(ExtensionBuilder builder) { | |
builder.service(BrowserCapabilities.class, PhantomJSIgnoringSSL.class); | |
} | |
public static class PhantomJSIgnoringSSL implements BrowserCapabilities { | |
@Override | |
public String getReadableName() { | |
return "phantomjs"; | |
} | |
@Override | |
public String getImplementationClassName() { | |
return "org.openqa.selenium.phantomjs.PhantomJSDriver"; | |
} | |
@Override | |
public Map<String, ?> getRawCapabilities() { | |
Map<String, Object> capabilities = Maps.newHashMap(); | |
capabilities.put(PhantomJSDriverService.PHANTOMJS_CLI_ARGS, new String[] { "--ignore-ssl-errors=true" }); | |
return capabilities; | |
} | |
@Override | |
public int getPrecedence() { | |
return 1000; | |
} | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment