Navigating SSL certificate prompts in Protractor

Our programs utilize SSL certificates and we are unable to bypass Chrome's prompt for selecting a certificate. We would be satisfied with simply choosing the one certificate needed. Attempts have been made using this code:

capabilities: {
    browserName: 'chrome',
    chromeOptions: {
      args: ['--disable-remote-fonts', '--start-maximized', '--ignore-certificate-errors']
    },
    trustAllSSLCertificates: true,
    acceptInsecureCerts: true,
    ACCEPT_SSL_CERTS: true,
  }

This method does not succeed, as the browser opens and remains stuck on the certificate selection screen even though there is only one certificate available. It's frustrating that a solution for this issue seems elusive in Protractor. Any suggestions?

Answer №1

If you find yourself missing the arguments or not using the correct key for chrome options, give this a shot:

Here is what you can try:

trustAllSSLCertificates: true,
acceptInsecureCerts: true,
ACCEPT_SSL_CERTS: true,
'goog:chromeOptions': {
   args: {
     '--disable-infobars',
     '--disable-extensions',
     '--disable-web-security'
   }
}

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Accessing the form element in the HTML outside of the form tag in Angular 2

I am attempting to achieve the following: <span *ngIf="heroForm?.dirty"> FOO </span> <form *ngIf="active" (ngSubmit)="onSubmit()" #heroForm="ngForm"> <div class="form-group"> <label for="name">Name</label& ...

Using TypeScript to deserialize various types from a shared object

I am currently dealing with a JSON array containing serialized objects, each of which has a type field. My challenge lies in deserializing them properly due to TypeScript not cooperating as expected: Check out the TypeScript playground for reference. type ...

An error occurred while trying to load the configuration "next/core-web-vitals" for extension

If you're embarking on a new project using NextJs and TypeScript, chances are you may encounter the following error: Failed to load config "next/core-web-vitals" to extend from. Wondering how to resolve this issue? ...

Tips for validating a string in a URL with Selenium IDE

When I click on a tab on my website, it triggers an AJAX service call where the URL contains parameters related to the data being loaded after the tab is clicked. The data is displayed as horizontal tiles one below the other, with 4 tiles being loaded pe ...

Ensure that a variable adheres to the standards of a proper HTML template

I'm struggling with a problem in my Angular application. I need to ensure that a TypeScript variable is a valid HTML template to compile successfully, like this: let v = '<div>bla…</div>' However, if the variable contains inco ...

Associative TypeScript Arrays

I'm attempting to organize reservations based on business ID in order to achieve a specific end result. Here is the desired output: [ [businessID1] => [Object1,Object2, Object3], [businessID2] => [Object1,Object2], [businessID3] => [Obje ...

What is the best way to showcase images at random in Angular?

I am trying to display a random array of images in the UI, but I'm encountering an error with innerHTML when using the code below in TypeScript. randomPic(){ this.randomNum= Math.floor(Math.random() * this.myPix.length); console.log(this.rando ...

What is the process for obtaining xpaths and css selectors for a desktop application?

I'm currently working on automating an application using Python Selenium. The application is a desktop version, similar to running WhatsApp on a desktop with Windows OS. I know I can get xpaths or CSS using Chrome, Firefox, IE, etc. I'm wondering ...

Utilizing Python for extracting obscured jQuery data

Click here to access the website which I think is hosted on GitHub. I'm facing difficulty extracting the values from the input fields, specifically the private key and public key. Even after trying with Selenium and BeautifulSoup, all I get are empty ...

Choose multiple frames simultaneously with Selenium

While some may consider this a foolish inquiry, it holds great significance for me. I am well-versed in switching frames using Selenium WebDriver. But I'm curious - is there a method to download the page source of the entire page with all its frames ...

Selenium can successfully launch the browser, however, it fails to navigate to the specified

Having trouble getting Firefox to open the URL you need for your Selenium and jUnit4 tests? You may be encountering an error message like Exception in thread "main" java.lang.IllegalStateException: The path to the driver executable must be set by the webdr ...

Having trouble with locating and clicking an element using Selenium and Python?

After countless attempts, I've exhausted all ideas and strategies for clicking on the "No" buttons. Here is the complete HTML code: <div class="row nest"> <div class="condition-row clearfix" id="condition_row_1"> <div class=" ...

I need help removing the commas at the beginning of each line in the list of dropdown values that I am trying to print. Can someone assist me with this task?

public static ArrayList<String> getDropdownTextList(By selector) { List<WebElement> optionList = retrieveDropdownOptions(selector); ArrayList<String> textList = new ArrayList<String>(); for(WebElemen ...

Issues with geckodriver interacting with elements in Python 3 programming language

As mentioned in the topic, I am attempting to click on a located element, but I am experiencing different outcomes based on the versions of geckodriver and Firefox for Linux. With older versions (such as FF38 + geckodriver 0.15 -> 0.17.0), I encounter a ...

Organizing Activities in Angular Version 5

Looking for an event calendar solution for Angular 5 After thorough research, I came across FullCalendar. However, I encountered several issues while trying to implement it in my Angular project 5. Is there any alternative to FullCalendar that is compati ...

Toggle the visibility of the navigation bar in Angular based on the user

I have implemented rxjs BehaviorSubject in my login page to transmit data to auth.service.ts, enabling my app.component to access the data stored in auth.service.ts. However, I now require the app.component to detect any changes made to the data in auth.se ...

Route.get() is expecting a callback function, however it received an object of undefined instead

In my nodejs application using typescript, I am working on separating the routing by introducing interfaces and controllers to handle the logic. app.ts const countryRoutes = require('./routes/countryroute') app.use('/countries', count ...

Steps for incorporating a filter feature in an Angular Material table

.HTML: Can someone assist me with implementing a filter in this component? I tried using it with the expansion table, but unfortunately, the filter is not working as expected. <mat-dialog-content style="width: 63rem; overflow: initial;"&g ...

The name 'XXX' is nowhere to be found

I encountered an error stating "Cannot find name 'Calendar Component'" while attempting to add a route to a component from another module in my app.module.ts file. Below is the content of my app.module.ts file: // Importing Modules // import {B ...

The error message encountered while using webpack with TypeScript and React is: "Unexpected token React.Component

I am currently working on setting up a project using webpack, typescript, and react. I have implemented babel to transpile my typscript/react code. However, when starting the development server, I encountered the following error: Module parse failed: Un ...