By Pass Security Warning for website

Hi I am using appium 1.4.13.1 with android emulator 6.0.
When accessing my company produced website using default, as I will have pop up Security Warning : There are problems with the security certificate for this site. With selection of “Go Back/View certificate/Continue”.
If there anyway I can set capabilities when running android default browser to accept and continue?
Or there is alternative way?

1 Like

Found the solutions, as I switch the capability to test on android instead of web, with this even though have to map again all the id and xpath information but this will work

1 Like

Hi! Could you expand on this? Say if I have the following:
DesiredCapabilities cap = new DesiredCapabilities();
cap.setCapability(MobileCapabilityType.DEVICE_NAME, “Android Emulator”);
cap.setCapability(MobileCapabilityType.BROWSER_NAME, “Browser”);
cap.setCapability(MobileCapabilityType.PLATFORM_NAME, “Android”);
cap.setCapability(MobileCapabilityType.ACCEPT_SSL_CERTS, true);
cap.setCapability(“autoDismissAlerts”, true);

	driver = new AndroidDriver<WebElement>(new URL(
			"http://127.0.0.1:4723/wd/hub"), cap);

How should I adjust this for me to bypass security warning popups as you did?

1 Like

Hi @Steve_Ong can you please elaborate on the solution you had found? I am having the same issues and cannot bypass this alert. Thanks!