-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[py] Enhance PrintOptions to support default, predefined, and custom page sizes (#15052) #15064
base: trunk
Are you sure you want to change the base?
[py] Enhance PrintOptions to support default, predefined, and custom page sizes (#15052) #15064
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Thank you @yvsvarma |
Please close PR #15052 |
You're right - today's been hectic for me, my bad. LGTM |
Looks bad to me. Magic numbers, applied especially for python? Can we create a feature request.. and implement the feature across all bindings (if needed)? Thanks all for contribution. |
I disagree with this. He's not using magic numbers, but setting the default value to constants (e.g. A4) that are standard. It could be enhanced, though. For example, adding better/more detailed exception handling.
I agree - it would be much better to standardize this feature. |
Thanks @nvborisenko and @shbenzer for reviewing this. |
Update: A feature request was opened for this by @shbenzer to this for all bindings. |
@pujagani , Can you please take a look? I have addressed all comments in this PR. |
@AutomatedTester , @pujagani can you please review this PR? |
CI RBE is failed
|
User description
Description:
PrintOptions
.set_page_size
to handle predefined and custom sizes with validation.PR Type
Enhancement, Tests
Description
Added predefined page sizes (A4, LEGAL, LETTER, TABLOID) in
PrintOptions
.Set default page size to A4 in
PrintOptions
.Introduced
set_page_size
method for predefined and custom sizes.Added unit tests for default, predefined, and custom page sizes.
Changes walkthrough 📝
print_page_options.py
Add predefined and custom page size handling
py/selenium/webdriver/common/print_page_options.py
set_page_size
method for handling page sizes.set_page_size
.print_page_options_tests.py
Add tests for page size functionalities
py/test/unit/selenium/webdriver/common/print_page_options_tests.py