applitools / Eyes.Selenium.JavaScript

Applitools Eyes SDK For Selenium JavaScript WebDriver
Other
18 stars 18 forks source link

In mobile full-screen tests, the browser address bar continues to repeat. #47

Closed KenjiCrosland closed 6 years ago

KenjiCrosland commented 6 years ago

When running tests in Sauce Labs that utilize eyes.setStitchMode(Eyes.StichMode.CSS) and eyes.setForceFullPageScreenShot(true), the address bar repeats several times instead of stitching together a single image of the entire page with the nav bar appearing only once at the very top. My understanding is that this doesn't happen when using the Java version of Applitools. However, this does happen when using eyes.selenium in Node while using selenium webdriver.

Example screenshot: image

wyvern8 commented 6 years ago

You should be able to use setImageCut with the FixedCutProvider to exclude the top part of the image.

KenjiCrosland commented 6 years ago

@wyvern8 Thank you. That helps. But now in the place of the address bar there is a blank white area which obscure parts of the layout? image

KenjiCrosland commented 6 years ago

Ok I figured it out. Even though I was using FixedCutProvider(130, 0, 0, 0) to cut off the navbar, you need to add it to the footer parameter to offset the white space.

So eyes.setImageCut(new FixedCutProvider(130, 130, 0, 0)); works for safari iphone6