Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@openfin/automation-helpers
Advanced tools
This package contains helper methods which can be use in automation testing to interact with the OpenFin ecosystem.
They should be used in a test runner that has webdriver capabilities e.g. @openfin/automation-cli
Run npm i @openfin/automation-helpers
.
These examples use chai
as the testing framework, but you can choose any framework you like.
import { expect } from "chai";
import { OpenFinSystem, WebDriver } from "@openfin/automation-helpers";
describe('Test Suite', () => {
it('The runtime version should be set', async () => {
const runtimeVersion = await OpenFinSystem.getVersion();
expect(runtimeVersion).to.equal('23.96.68.3');
});
});
import { expect } from "chai";
import { OpenFinWorkspace } from "@openfin/automation-helpers";
describe('Test Suite', () => {
it('Can search in the Home component', async () => {
await OpenFinWorkspace.homeSearch("basic");
await WebDriver.sleep(1000);
const ids = await OpenFinWorkspace.homeSearchResultIds();
expect(ids.length).equal(2);
expect(ids[0]).equal("basic-interop-view");
expect(ids[1]).equal("basic-fdc3-view");
});
});
import { expect } from "chai";
import { WebDriver } from "@openfin/automation-helpers";
describe('Test Suite', () => {
it('Can perform operation in the interop window', async () => {
await WebDriver.switchToWindow("Interop Instrument Selection");
await WebDriver.setElementAttributeByPath("//h1", "innerHTML", "My New Title");
const value = await WebDriver.getElementAttributeByPath("//h1", "innerHTML");
expect(value).eq("My New Title");
await WebDriver.sleep(2000);
});
});
FAQs
Helper methods for automation testing in the OpenFin ecosystem
The npm package @openfin/automation-helpers receives a total of 211 weekly downloads. As such, @openfin/automation-helpers popularity was classified as not popular.
We found that @openfin/automation-helpers demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.