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

Monitor parameter not taken in account in png for partial screenshot #86

Open
CedricAudouard opened this issue Mar 12, 2024 · 0 comments

Comments

@CedricAudouard
Copy link

CedricAudouard commented Mar 12, 2024

General information:

  • OS name: Windows
  • OS version: 11
  • OS architecture: 64 bits
  • Python version: 3.12
  • mss version: 6.0.0 (not sure), last library version for RF
  • pygtk usage: no

Description of the warning/error

Issue with ScreenCap library, linked to the monitor parameter
I simply use :

 Take Partial Screenshot    name=screen quality=100    left=25    top=450    width=1750    height=300    monitor=1

But on my two screens setup, no matter the monitor value is (0, 1, 2…) the left screen is always captured.

Full message

No specific error

Example

This works with the format being provided :

ScreenTEST
    Open Browser    https://google.com    chrome
    Maximize Browser Window
    Log    Test0
    Take Partial Screenshot    name=test0   quality=100    left=25    top=450    width=1750    height=300    monitor=0    format=jpeg
    Log    Test1   
    Take Partial Screenshot    name=test1    quality=100    left=25    top=450    width=1750    height=300    monitor=1    format=jpeg 
    Log    Test2   
    Take Partial Screenshot    name=test2    quality=100    left=25    top=450    width=1750    height=300    monitor=2    format=jpeg
Close Browser

If I remove the format=jpeg, hence partial capture is made in .png, same monitor is always captured.
Library is imported simply with ScreenCap (no other parameters)

Other details

See also this and analysis help by damies13 :
https://forum.robotframework.org/t/screencap-monitor-selection-parameter/6934

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