My tests are running fine with WebdriverIO but with Nightwatch I can't locate/share the driver for Percy snapshot.
it('pass the login', async function (app) {
const myElement = await app.element.find(
new By('accessibility id', 'login-button'),
);
// console.log(await myElement.takeScreenshot());
// NOT WORKING
// await percyScreenshot(myElement, 'Login');
// working with WebdriverIO to snapshot the screen
await percyScreenshot('Login');
});
});
The exact error is when Percy is trying to evaluate the remoteHostname variable of the driver.
TypeError: Cannot read properties of undefined (reading 'includes')
See https://github.com/percy/percy-appium-js/blob/49c9170900ba86225a0c21c6e2cebe22d496511c/percy/providers/appAutomateProvider.js#L14
My tests are running fine with
WebdriverIObut withNightwatchI can't locate/share the driver for Percy snapshot.The exact error is when Percy is trying to evaluate the
remoteHostnamevariable of the driver.TypeError: Cannot read properties of undefined (reading 'includes')See https://github.com/percy/percy-appium-js/blob/49c9170900ba86225a0c21c6e2cebe22d496511c/percy/providers/appAutomateProvider.js#L14