What am I missing?
I'm trying to write a custom helper that checks for 4 elements, and then sends a different command based on which element is present.
In order to do this, we needed a custom helper per the codeceptjs documentation https://codecept.io/helpers/Appium.
So we call:
let browser = this.helpers['Appium'].browser
But that unfortunatly does not work as documented, it does not give access to almost any of the Appium functions documented on their website http://appium.io/docs/en/about-appium/api/
So when we try:
async checkElement(locator) {
let client = this.helpers['Appium'].browser;
let elementResult = await client.$$(locator).isEnabled();
}
All of these commands throw an error that says something like this:
browser.$(...).isEnabled is not a function
Per the codeceptjs docs... that should be an appium client with all of those functions included...