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

Issue in Capture Full Screen when viewport is changed in chrome options #72

Closed
tiwarishrijan opened this issue Aug 24, 2020 · 3 comments

Comments

@tiwarishrijan
Copy link

Describe the bug
I have created mobile simulation on browser by setting chrome options as below

${device metrics}=    Create Dictionary    width=${360}    height=${640}    pixelRatio=${3.0}    userAgent=Mozilla/5.0 (Linux; Android 4.2.1; en-us; Nexus 5 Build/JOP40D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19
${mobile emulation}=    Create Dictionary    deviceMetrics=${device metrics}
${chrome options}=    Evaluate    sys.modules['selenium.webdriver'].ChromeOptions()    sys, selenium.webdriver
Call Method    ${chrome options}    add_experimental_option    mobileEmulation    ${mobile emulation}
Create Webdriver    Chrome    chrome_options=${chrome options}

When i take screenshot using Capture Full Screen keyword it actually widens the whole screen due to which screenshot is scaled
Example Image
img1

@jessezach
Copy link
Owner

All web images are resized to a specific size in order to ensure that comparison is done between images of same sizes.
Will add an enhancement to avoid resizing completely and implement another way to ensure sizes are equal before comparison.

@jessezach
Copy link
Owner

Fixed in #73

@jessezach
Copy link
Owner

Fix has been released

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