-
Notifications
You must be signed in to change notification settings - Fork 52
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
Viewport options ignored if passed into a dictionary to PyleniumConfig
#282
Comments
I haven't been able to reproduce this issue. If you want to change the dimensions of the browser window, make sure to set If maximize is true, then yes, it will maximize the window to whatever screen it's on and ignore the width and height. See https://docs.pylenium.io/configuration/viewport 👀
|
Thanks for taking time to answer this issue.
Oh, maybe that's the reason! I'll test it tonight and I'll come back with the result.
Yes, that's what I'm currently doing as a workaround. |
Confirmed, my problem was using Setting |
Similarly to the default
pylenium.json
that gets created withpylenium init
, I would like to define a dictionary with all my config options for Pylenium. However, the options for the viewport seem to be ignored and a default resolution of 800x600 is used instead.Example illustrating the issue:
A workaround is to not add the viewport options to the
CONFIG
dictionary and instead explicitly callpy.viewport()
.Example illustrating the workaround:
The text was updated successfully, but these errors were encountered: