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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

endY is out of range - Chrome #60

Open
lisaPthomas opened this issue Jan 8, 2018 · 1 comment
Open

endY is out of range - Chrome #60

lisaPthomas opened this issue Jan 8, 2018 · 1 comment

Comments

@lisaPthomas
Copy link

Environment

package.json
  "devDependencies": {
    "selenium-standalone": "^6.11.0",
    "wdio-mocha-framework": "^0.5.11",
    "wdio-screenshot": "^0.6.0",
    "wdio-selenium-standalone-service": "0.0.9",
    "wdio-visual-regression-service": "^0.8.0",
    "webdriverio": "^4.8.0"
  },
wdio.conf
...
 plugins: {
    'wdio-screenshot': {}
  },
 services: [
    'selenium-standalone',
    'visual-regression'
  ],

  visualRegression: {
    compare: new VisualRegressionCompare.LocalCompare({
      referenceName: getScreenshotName(path.join(process.cwd(), 'screenshots/reference')),
      screenshotName: getScreenshotName(path.join(process.cwd(), 'screenshots/screen')),
      diffName: getScreenshotName(path.join(process.cwd(), 'screenshots/diff')),
      misMatchTolerance: 3,
    }),
    viewportChangePause: 300,
    viewports: [{
      width: 320,
      height: 500
    }, {
      width: 1024,
      height: 800
    }],
    orientations: ['landscape', 'portrait'],
  },
...

Problem:
I'm trying to take a Screen Shot of a footer element.

  it("Affiliate-Footer", function() {
    browser.waitForVisible(".floor-cta");
    const report = browser.checkElement(".FtrBlock");
    isWithinMisMatchTolerance(report);
  });

The test works on FireFox but is failing on Chrome v63.
Error Message
'endY is out of range'

I tried changing width and height sizes and its still not working. Any suggestions?

@mkj28
Copy link

mkj28 commented Feb 9, 2019

would seem your element is indeed outside viewport - can you scroll, zoom, move the footer fully into view? if not - talk to your folks not to render it outside the viewport

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

2 participants