Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share driver for Percy 馃摳 #16

Open
MadeinFrance opened this issue Jul 25, 2023 · 0 comments
Open

Share driver for Percy 馃摳 #16

MadeinFrance opened this issue Jul 25, 2023 · 0 comments

Comments

@MadeinFrance
Copy link

MadeinFrance commented Jul 25, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant