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

What is the best way to determine if an image has successfully loaded in Codeception tests?

I need to verify whether the Verisign logo images are loading correctly $I->seeElement('DIV#security IMG.verisign'); However, my current test is passing even when the image is not loaded (e.g. for a 404 error if the file name of the source i ...

Is it possible to combine CSS Modules and Selenium?

I have been developing a web application using React/Redux and CSS Modules. To mock my CSS imports for unit tests, I am utilizing identity-obj-proxy. But now the QA team is inquiring about how to handle the obfuscated class names when it comes to using Se ...

When conducting a test, it was found that the JSX element labeled as 'AddIcon' does not possess any construct or call signatures

Here is a code snippet I'm currently working with: const tableIcons: Icons = { Add: forwardRef((props, ref) => <AddBox {...props} ref={ref} />), Check: forwardRef((props, ref) => <Check {...props} ref={ref} />) }; const AddIcon ...

I am having difficulty locating the appropriate image (.jpg) using webdriver, selenium, and beautifulsoup

I am currently attempting to download a substantial amount of images from the following website: here. My goal is to automatically click on the link under the station-column, navigate to the new browser window, and locate the jpg file (found on the left-h ...

Efficient method to access two arrays simultaneously and combine them into an associative array in JavaScript

When using Ajax to return a table, you have the option of separating column names and row values. Here are two ways to do it: let columns = ["col1", "col2", "col3"]; let rows = [ ["row 1 col 1", "row 1 col 2", "row 1 col 3"] , ["row 2 col 1", "r ...

NestJs encountering issues with reading environment variables

I used the instructions from the Nest documentation to set up the configuration, however, it's not functioning correctly. app.module.ts @Module({ imports: [ ConfigModule.forRoot({ isGlobal: true }), TypeOrmModule.forRoot(config), AuthMo ...

Troubleshooting problems with running Firefox in headless mode

I am attempting to execute Firefox in headless mode using Selenium. Below is the code snippet I am using: from selenium.webdriver.firefox.options import Options from selenium import webdriver options = Options() options.add_argument('--headless&apos ...

Utilize nested object models as parameters in TypeScript requests

Trying to pass request parameters using model structure in typescript. It works fine for non-nested objects, but encountering issues with nested arrays as shown below: export class exampleModel{ products: [ { name: string, ...

How to retrieve a null value when using Selenium's getAttribute(href) method in a Salesforce application with Java

This particular application is Salesforce-related. I am looking to retrieve the value of certain attributes from the <a> tag Href Title The HTML Code snippet is provided below: <one-app-nav-bar-item-root one-appnavbar_appnavbar="" data-id= ...

Is there a way to ensure that a certain block of code in Typescript is executed only after an API call has been completed?

When making an API call, I need the code after the call to wait until the API call finishes. In my function called this.api_call, it calls the API and only returns an array returnValue once the call is complete. let returnValue = this.api_call(data); // ...

Is it feasible to access and modify local files within an Angular project using TypeScript code in the angular component.ts file? If so, how can this be achieved?

My Angular application is built on version 4 or higher. I have a setup in my project where there is a folder containing a txt file and another folder next to it with an angular component.ts file: FolderWithFile -----file.txt ComponentFolder -----person.co ...

When I try to load JSON data using the http.get() method in my Angular 2 template, it returns

I've encountered an issue while attempting to read and parse a local json file into a custom class I created. The problem arises when trying to access properties of the class, as it throws errors indicating that the class is either null or undefined. ...

Ways to continuously monitor the presence of an alert

I've been testing the Gmail unread mail counts and so far everything is running smoothly. However, I'm facing a challenge due to slow internet causing an alert stating "Some feature cannot be loaded" to appear. How should I go about handling this ...

Recent changes in the Firefox browser have caused issues with the functionality of Selenium in Python3, preventing it from navigating

My Python scraper code was working fine until my FireFox browser updated to version 65.0.2 64-bit. Now, the code gets stuck on a blank page instead of going directly to the target URL. I have tried updating Selenium to version 3.141.0 and changing the se ...

Leveraging the 'this' keyword in TypeScript

In my Javascript class, I used the 'this' keyword as shown below: if (this[this.props.steps[i].stepId].sendState !== undefined) { this.setState({ allStates: { ...this.state.allStates, [thi ...

What are the steps to fix the error stating that 'loginError.data' is an unknown type?

Recently delving into typescript, I decided to test the waters with nextjs, rtk query, and antd. However, while attempting to access error within useLoginMutation using the property error.data.message, it was flagged as type unknown. To tackle this issue, ...

Protractor experiencing difficulty recognizing Angular functionality

Recently, I made the switch to using Protractor for running end-to-end tests on my Angular application. However, the e2e tests have suddenly started failing because Protractor is unable to detect Angular on the website. I raised this issue in their GitHub ...

When I attempt to run a Selenium test using WebDriver, Internet Explorer fails to open

I am completely new to selenium, and I recently used the selenium firefox IDE to record a scenario. After saving the test case in java format, I attempted to run it using the selenium-ie driver and IEDriverServer.exe. Below is the content of my test case ...

Guide for setting up filtering and sorting on a multi-value array column with MUI's data grid

I've encountered an issue with the MUI Data Grid component's free version, specifically regarding filtering and sorting on a column that displays multiple values in an array. The problematic column in this case is 'tags', which showcase ...

Java NullPointerException stemming from Selenium Java TestNG

Yesterday my test was working fine, but when I tried to use TestNG, a problem occurred. Here is my main class leadTest: public class leadTest { WebDriver driver; @Test public void f() { .. ... ... /*------------------------Go to le ...