Using SuperTest/Protractor on unsecure HTTPS

I am trying to run automated API tests on localhost with an invalid cert.

Is there a chromeOption equivalent to "Proceed Anyway" that I can pass to the tests so they can get a response from the url?

Right now I am manually testing the API via Postman (after using Proceed Anyway in Chrome), so the API itself does work, but the automation cannot get a response.

Replay

This is works for me (in python):

from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_experimental_option("excludeSwitches", ["ignore-certificate-errors"])
webdriver_instance = webdriver.Chrome(chrome_options=options)

See also: http://stackoverflow.com/questions/24507078/how-to-deal-with-certificates-using-selenium and http://stackoverflow.com/questions/24168407/unsupported-command-line-flag-ignore-certificate-errors

Category: protractor Time: 2016-07-28 Views: 0

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.154 (s). 12 q(s)