Executing Angular E2E tests using the Protractor-Cucumber-Framework results in an abundance of peculiar cache files being generated

Within our Angular project, we have implemented the Protractor-Cucumber-Framework for conducting E2E tests. Upon completion of all E2E tests, not only does it create a results.json and results.xml file (which is expected), but it also generates numerous obscure, inaccessible cache files within a newly created null directory (refer to the provided screenshot). There are close to 1000 such files. Is this standard procedure, and is there a way to understand their purpose and prevent their generation?

https://i.sstatic.net/On6fs.png

Answer №1

My solution to prevent the creation of these files during each test run involved commenting out a specific line in the chromeOptions property within the protractor.conf.js file:

chromeOptions: {
  prefs: {
    'plugins.always_open_pdf_externally': true,
    download: {
      directory_upgrade: true,
      prompt_for_download: false,
      default_directory: downloadsPath,
    },
  },
  args: [
    '--no-sandbox',
    '--test-type=browser',
    '--disable-gpu',
    '--log-level=1',
    '--disable-dev-shm-usage',
    // '--disk-cache-dir=null',
  ],
},

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

Error encountered in Angular NGRX while accessing the store: Trying to read property 'map' of an undefined variable

I have integrated NGRX effects into my Angular application and encountered the following error. I'm uncertain if I am using the selector correctly in my component to query the store? core.js:6162 ERROR TypeError: Cannot read property 'map' o ...

Module '@tanstack/react-table' cannot be located even though it has been successfully installed

Currently, I am tackling a TypeScript React project and encountering an issue while attempting to import ColumnDef from @tanstack/react-table in my columns.tsx file. import { ColumnDef } from "@tanstack/react-table"; export type Payment = { id ...

Unable to select a radio button through Selenium automation

I have encountered errors with various xpath functions, such as the element not being clickable. One suggestion was to use a for loop. Can anyone provide alternative solutions? <dd class="inline"> <!-- ngRepeat: gender in genderList track ...

Chunk loading in IE 11 has encountered an error

Having an issue with my website which is created using Angular 5. It seems to be malfunctioning in IE 11, and I am encountering the following error in the console: https://i.stack.imgur.com/Ek895.png Any insights on why my Angular code isn't functio ...

Automating clicks on web elements using Selenium WebDriver with findElements() method

Using selenium webdriver allows you to execute the following code: driver.findElement(By.id('div-id')).click(); But how does it work with multiple elements? For instance, if you try the script below, it results in an error 'Cannot read pro ...

Creating a Python loop to save data to separate rows in a CSV file

I recently started using Python and have created a script that extracts company name, sector, and industry information from Yahoo Finance based on entered tickers. However, the data is currently being written into one row in a CSV file. How can I modify th ...

How can I include the paths for "testng.xml" and log4j2.xml in my pom.xml file for a Selenium - Maven/TestNG project, ensuring the executable .jar file can run on any machine?

I am currently utilizing Maven, TestNG, and Log4j2 in my project. Our goal is to generate an executable .jar file that will execute testng.xml via the pom.xml file. As of now, I have successfully created an executable .jar file and ran it without any iss ...

Managing refresh events in Angular with F5 Key

Recently, I encountered an issue with my Angular project. During development (using ng s), everything functions normally and upon pressing F5, the page reloads correctly and works fine. However, when I build and deploy the project to a remote server, all ...

The C# driver function Selenium.GetPageSource() is returning an error indicating that the path length is too long

I am encountering an issue while trying to transfer the driver's PageSource from Selenium C# to HTML Agility Pack. The line of code htmlDoc.Load(driver.PageSource); is causing an error message: '...' is too long, or a component of the specif ...

Cannot trigger event ascn.onchange does not exist as a function

Need to trigger the onChange function and pass parameters within it. Here's what I have tried: setTimeout(function() { document.getElementById(input.key)?.onchange({}) }, 200); Encountering the following error message: cn.onchange is not a function ...

Check at least one checkbox in Ionic 3

My Ionic 3 form consists of 3 checkboxes fields: <form [formGroup]="bookingForm" (ngSubmit)="addBooking()"> <ion-card> <ion-card-content> <ion-item-group formGroupName="period"> <ion-list> <ion-list-hea ...

Choosing an Option from a Div Drop Down List in Selenium

My goal is to automate the selection of the second option from a dropdown using Python and Selenium. The current code attempts to achieve this, where the first line successfully opens the dropdown but the second line fails to select the desired option. Var ...

The error message "Type 'IPromise<{}>' is not compatible with type 'IPromise<TemplatesPagingModel>' in typescript version 2.8.0" is displayed

Currently, I am working on an AngularJS framework (version 1.5.8) with the latest TypeScript files (version 2.8.0). However, after updating to the most recent TypeScript version, the code below is not compiling. Implementation of Angular interface: inter ...

What strategies can I employ to manage browser compatibility issues while utilizing contemporary JS and CSS frameworks?

I have been working on a project that utilizes the most recent versions of Angular (version 5) and Bootstrap (4). However, after a few weeks of development, I noticed that some features are not functioning properly on Safari, and I am uncertain if all fea ...

Assistance Needed with XPATH and CSS for Selenium Automation

Can anyone assist me in finding the appropriate XPATH/CSS locator to extract text from the structure below? <div class="page-header song-wrap"> <div class="art solo-art"> <div class="meta-info"> <h1 class="page-title"> Zehnaseeb I ...

Is selenium incompatible with the "&" symbol in URLs?

Currently, I am scraping URLs https://www.youtube.com/trendsdashboard#loc0=ind While the above link works perfectly fine, when there are multiple links on the same page like: https://www.youtube.com/trendsdashboard#loc0=ind&feed=shared It returns a ...

Is there a method to run code in the parent class right after the child constructor is called in two ES6 Parent-Child classes?

For instance: class Parent { constructor() {} } class Child { constructor() { super(); someChildCode(); } } I need to run some additional code after the execution of someChildCode(). Although I could insert it directly there, the requirement is not to ...

The results of varied tests are influenced by the specific browser being used in relation to Selen

In my JUnit test class, I have a number of tests that I am running using the Maven environment with Selenide version 3.5.1. In these tests, the browser is only opened for the first test and closed at the last test. I attempted to run them on both Chrome a ...

Authentication with API Tokens in Rails 5

I am currently developing an API using rails 5 and I am looking to implement token authentication for consumption with angular 2 as the frontend. After installing devise, I found that most tutorials use devise_token_auth for this purpose. Can someone clari ...

The functionality of Angular 8 Directives from the shared module is currently malfunctioning

Hey everyone! I've been working on creating a custom directive in Angular 8, but for some reason it's not functioning properly. Even though there are no errors shown in the browser console, I can't see any changes or output from the console. ...