Skip to content

[py] deprecate all but Options and Service arguments in driver instantiation.#9128

Merged
AutomatedTester merged 4 commits intoSeleniumHQ:trunkfrom
itsjwala:py_deprecated_init_params
Feb 4, 2021
Merged

[py] deprecate all but Options and Service arguments in driver instantiation.#9128
AutomatedTester merged 4 commits intoSeleniumHQ:trunkfrom
itsjwala:py_deprecated_init_params

Conversation

@itsjwala
Copy link
Copy Markdown
Contributor

@itsjwala itsjwala commented Feb 2, 2021

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

Deprecated remaining __init__ params from chromium and IE webdriver class
I haven't touched the chrome driver since all the params are already deprecated if not deprecated in the parent chromium class.
Left out browser_name & vendor_prefix for chromium driver family

Motivation and Context

Fixes #9125

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 Feb 2, 2021

CLA assistant check
All committers have signed the CLA.

Copy link
Copy Markdown
Member

@AutomatedTester AutomatedTester left a comment

Choose a reason for hiding this comment

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

I think we can clean up chrome/webdriver.py here

:Args:
- browser_name - Browser name used when matching capabilities.
- vendor_prefix - Company prefix to apply to vendor-specific WebDriver extension commands.
- browser_name - Deprecated: Browser name used when matching capabilities.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Actually thinking about this we should keep browser_name and vendor_prefix due to the way inheritance is done.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removed browser_name and vendor_prefix from deprecation for chromium family drivers for now.

Deprecated left out keep_alive for IE & Chrome Driver and
Added Deprecation warning for missing desired_capabilites for IE driver
currently left is - browser_name, vendor_prefix for chromium driver family

Fixes  SeleniumHQ#9125
@itsjwala itsjwala force-pushed the py_deprecated_init_params branch from d454eb5 to 4f02979 Compare February 3, 2021 14:24
@itsjwala
Copy link
Copy Markdown
Contributor Author

itsjwala commented Feb 3, 2021

I think we can clean up chrome/webdriver.py here

should I deprecate keep_alive from Opera and Edge driver as well as they are part of chromium webdriver?

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Feb 4, 2021

Kudos, SonarCloud 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

@AutomatedTester
Copy link
Copy Markdown
Member

Thank you for your contribution!

@AutomatedTester AutomatedTester merged commit c89807a into SeleniumHQ:trunk Feb 4, 2021
@itsjwala itsjwala deleted the py_deprecated_init_params branch February 4, 2021 11: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.

[py] deprecate all but Options and Service arguments in driver instantiation.

3 participants