
Security News
RubyGems Adds Cooldown Feature to Bundler for Newly Published Gems
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.
auto-heal-utility
Advanced tools
This utility provides a way to auto-heal broken locators in your Playwright tests. It works by logging locator failures and then using that data to intelligently select the best locator from a list of alternatives.
npm install auto-healer-utility
import { WaitHelper } from 'auto-healer-utility';
import { test } from '@playwright/test';
test('my test', async ({ page }) => {
const waitHelper = new WaitHelper(page);
// Use the waitHelper to interact with elements
await waitHelper.waitForElementAndClick([page.locator('#button1'), page.locator('#button2')], {
feature: 'my feature',
scenario: 'my scenario',
step: 'click button',
});
});
The WaitHelper class is the main entry point for the utility. It takes a Playwright Page object in its constructor. The waitForElementAndClick and waitForElementAndFill methods take an array of locators and a metadata object. The metadata object is used to log information about the test that is running.
The AutoHeal class is responsible for the core auto-healing logic. It works by:
AutoHeal class logs the failure to a file. The log entry includes the locator, the reason for the failure, and the metadata.AutoHeal class analyzes the log file to determine which locators are the most reliable. It does this by counting the number of times each locator has failed.waitForElementAndClick or waitForElementAndFill, the AutoHeal class selects the best locator from the array of locators that you provide. It does this by selecting the locator that has failed the least number of times.The AutoHeal class can be configured with the following options:
timeout: The timeout in milliseconds to wait for a locator to be attached to the DOM. Defaults to 60 seconds.logFile: The path to the log file. Defaults to logs/locator_failures.log.FAQs
A Playwright utility for auto-healing broken locators.
We found that auto-heal-utility demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.