Skip to content

Instantly share code, notes, and snippets.

@SarahElson
Created April 26, 2023 08:11
How To Handle SSL Certificates In Selenium WebDriver
package test;
import org.testng.annotations.Test;
public class Test_Accept_InsecureSslCerts extends BaseClass{
@Test
public void testSslCertificatesHandlingChrome()
{
setup("chrome", true);
navigateToUrls();
}
@Test
public void testSslCertificatesHandlingFirefox()
{
setup("firefox", true);
navigateToUrls();
}
@Test
public void testSslCertificatesHandlingEdge()
{
setup("edge", true);
navigateToUrls();
}
@Test
public void testSslCertificatesHandlingSafari()
{
setup("safari", true);
navigateToUrls();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment