![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
@bam.tech/appium-helper
Advanced tools
Appium is a blackbox e2e testing framework, which means you can run it on any app (even production ones) with no setup required.
Readme
Appium is a blackbox e2e testing framework, which means you can run it on any app (even production ones) with no setup required.
However, since it supports many languages and platforms, the docs can be difficult to navigate and find the precise way to do things. This package wraps a webdriverio
client to expose most common e2e testing capabilities you would want to use.
Install the helper yarn add @bam.tech/appium-helper
Write your test script
// appium.test.ts
import { AppiumDriver } from "@bam.tech/appium-helper";
test("e2e", async () => {
const driver = await AppiumDriver.create({
// `npx @perf-profiler/profiler getCurrentApp` will display info for the current app
appPackage: com.example,
appActivity: com.example.MainActivity,
});
driver.startApp();
await driver.findElementByText("Welcome");
});
npx appium
in a terminalyarn jest appium.test.ts
You can find an element by text or testID
. The helper will wait for the element to exist and return it:
await driver.findElementByText("Welcome");
await driver.findElementById("welcome_text");
You can click an element by text or testID
. The helper will wait for the element to exist and click it:
await driver.clickElementByText("Welcome");
await driver.clickElementById("welcome_text");
await driver.scrollDown();
await driver.scrollToEnd();
driver.startApp();
// You should probably add a finder to wait for the app to start
// for instance driver.findElementByText("Welcome");
driver.stopApp();
You can also wait for a certain amount of time:
await driver.wait(<delay in ms>);
// e.g.
await driver.wait(5000);
First find the element by its placeholder, value or test id, then use addValue
:
const input = await driver.findElementByText("Email input Placeholder");
await input.addValue("My username");
AppiumDriver
just wraps a webdriverio client.
You can still run any webdriverio
commands using:
const client = driver.client;
// run any commands
await client.$("...");
FAQs
Appium is a blackbox e2e testing framework, which means you can run it on any app (even production ones) with no setup required.
We found that @bam.tech/appium-helper demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 23 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.