Skip to content

Elaborate find_element deprecation message#10273

Merged
diemol merged 3 commits intoSeleniumHQ:trunkfrom
europeanplaice:dev_warnings
Jan 24, 2022
Merged

Elaborate find_element deprecation message#10273
diemol merged 3 commits intoSeleniumHQ:trunkfrom
europeanplaice:dev_warnings

Conversation

@europeanplaice
Copy link
Copy Markdown
Contributor

Description

This PR gives more detailed deprecation information to the methods of find_element_by_* .

Motivation and Context

Though a user who uses find_element_by_* may not know the grammar of find_element(), currently, the warnings don't suggest the usage of it. So the user has to look up the documentation, and it would be a little annoying. If the deprecation warnings gave enough information, it would save users' time.

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.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Jan 21, 2022

CLA assistant check
All committers have signed the CLA.

Copy link
Copy Markdown
Member

@diemol diemol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @europeanplaice!

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

Merging #10273 (55d5805) into trunk (f296ca9) will decrease coverage by 0.01%.
The diff coverage is 23.80%.

❗ Current head 55d5805 differs from pull request most recent head 69cd752. Consider uploading reports for the commit 69cd752 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##            trunk   #10273      +/-   ##
==========================================
- Coverage   44.98%   44.97%   -0.02%     
==========================================
  Files          85       85              
  Lines        5477     5479       +2     
  Branches      269      269              
==========================================
  Hits         2464     2464              
- Misses       2744     2746       +2     
  Partials      269      269              
Impacted Files Coverage Δ
py/selenium/webdriver/remote/webelement.py 26.00% <0.00%> (ø)
...lenium/webdriver/support/event_firing_webdriver.py 12.16% <0.00%> (-0.12%) ⬇️
py/selenium/webdriver/remote/webdriver.py 39.69% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f296ca9...69cd752. Read the comment docs.

@diemol diemol merged commit d18eac4 into SeleniumHQ:trunk Jan 24, 2022
@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@europeanplaice europeanplaice deleted the dev_warnings branch January 24, 2022 21:36
@europeanplaice
Copy link
Copy Markdown
Contributor Author

I'm glad I could help.

elgatov pushed a commit to elgatov/selenium that referenced this pull request Jun 27, 2022
* make warnings detailed

* Small fix

Co-authored-by: Diego Molina <[email protected]>
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.

4 participants