Prerequisite: Anatomy of a test
// import QA's custom Appium library Android flows module
import { flow } from "@qawolf/flows/android";
// export the default flow with a given name and platform
export default flow(
// define the name of the flow
"<FlowNameHere>",
// specify the platform for the flow
"Android - Tablet (Android 14)",
// define the asynchronous test function
async ({ test, wdio, ...testContext }) => {
// start QA Wolf's custom Android driver session using Appium with Chrome browser
const driver = wdio.startAndroid({
"appium:browserName": "Chrome"
});
// the rest of your test goes here
}
);