percy / percy-selenium-java

Visual testing with Java Selenium and Percy
https://docs.percy.io/docs/java-selenium
MIT License
12 stars 17 forks source link

Blocks scroll position save #259

Closed a-kolesnyk-ks closed 10 months ago

a-kolesnyk-ks commented 10 months ago

Have you read the "Debugging SDKs" doc yet?

Read this and understood u dont support such stuff https://github.com/percy/percy-cypress/issues/2

The problem

I scrolled 3 blocks in our tests but Percy screenshot takes unscrolled. https://percy.io/99050884/jet-cc/builds/31401112/changed/1729023464?browser=chrome&browser_ids=48&subcategories=unreviewed%2Cchanges_requested&viewLayout=overlay&viewMode=new&width=1920&widths=1280%2C1366%2C1920

Details

If necessary, describe the problem you have been experiencing in more detail.

Code to reproduce issue

Cant provide exact code but can provide logical copy

page.getContainer1()
                .scrollToBottom();
        page.getContainer2()
                .scrollToBottom();
        page.leftPageBlockScrollToBottom()
                .snapshot("Scrolled blocks page");

Question

Why dont you support such stuff, is it planned to support in future? Do you know any workaround for this issue?

itsjwala commented 10 months ago

Hey @a-kolesnyk-ks thanks for reaching out 👋

you can check Screenshots aren’t a full-page under documentation https://www.browserstack.com/docs/percy/troubleshoot/sdk

If you're still facing issues, Please reach us via support, we'll be happy to assist further.