Skip to content

[py] Moved all PrintOptions class attributes to custom descriptor class.#12297

Merged
AutomatedTester merged 3 commits intoSeleniumHQ:trunkfrom
sandeepsuryaprasad:print-page-options
Jul 12, 2023
Merged

[py] Moved all PrintOptions class attributes to custom descriptor class.#12297
AutomatedTester merged 3 commits intoSeleniumHQ:trunkfrom
sandeepsuryaprasad:print-page-options

Conversation

@sandeepsuryaprasad
Copy link
Copy Markdown
Contributor

Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it

Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.

Description

Moved all page attributes in PrintOptions class to custom descriptor class.

Motivation and Context

  • Currently we are validating and setting different page attributes using multiple properties.
  • By grouping and validating different page attributes in a separate descriptor class, the code looks more readable and maintainable.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • [] New feature (non-breaking change which adds functionality)
  • [] Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have read the contributing document.
  • [] My change requires a change to the documentation.
  • [] I have updated the documentation accordingly.
  • [] I have added tests to cover my changes.
  • All new and existing tests passed.

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

Patch coverage: 31.94% and project coverage change: -1.04 ⚠️

Comparison is base (2fd7dd7) 56.92% compared to head (f47434a) 55.88%.

❗ Current head f47434a differs from pull request most recent head 1f1d9ed. Consider uploading reports for the commit 1f1d9ed to get more accurate results

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##            trunk   #12297      +/-   ##
==========================================
- Coverage   56.92%   55.88%   -1.04%     
==========================================
  Files          86       86              
  Lines        5423     5409      -14     
  Branches      193      193              
==========================================
- Hits         3087     3023      -64     
- Misses       2143     2193      +50     
  Partials      193      193              
Impacted Files Coverage Δ
py/selenium/webdriver/common/print_page_options.py 41.66% <31.94%> (-47.68%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@AutomatedTester
Copy link
Copy Markdown
Member

Linting job has failed please look

@sandeepsuryaprasad
Copy link
Copy Markdown
Contributor Author

Linting job has failed please look

Fixed. Now it should be fine.

@AutomatedTester AutomatedTester merged commit 4e1fd7f into SeleniumHQ:trunk Jul 12, 2023
@sandeepsuryaprasad sandeepsuryaprasad deleted the print-page-options branch November 24, 2024 04:17
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

Successfully merging this pull request may close these issues.

3 participants