-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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] remove desired capabilities argument for Webkitgtk #14128
[py] remove desired capabilities argument for Webkitgtk #14128
Conversation
remove capabilities and add default Options same in safari.webdriver
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
This does fix the problem described in the issue, but this class is problematic in several ways, still It's hard to write this code when we can't have tests because we aren't managing the drivers. But I think it needs to look more like: |
It makes sense to me that they are identical if they aren't actually doing anything other than starting/stopping the driver. |
@iampopovich the python linter is failing on some of these changes, can you take a look? |
@titusfortner Running the script |
From root run The format script is supposed to work without any additional software installed, but we haven't gotten that figured out for python. If we add the python bit, everyone who doesn't have a python dev environment will get failures. There's an open PR for part of it, we need to dig into it again. |
…4128) * initial changes for capabilities removing remove capabilities and add default Options same in safari.webdriver * make webkitgtk.webdriver same as wpewebkit.webdriver * fix formatting with isort * applying formatting with tox
User description
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.
according to #14087
i removed capabilities and add default Options same as in safari.webdriver class
Description
Motivation and Context
Types of changes
Checklist
PR Type
Bug fix
Description
desired_capabilities
argument from theWebDriver
constructor inwebkitgtk
module.options
directly, simplifying the initialization process.desired_capabilities
withoptions
capabilities.Changes walkthrough 📝
webdriver.py
Remove
desired_capabilities
argument and simplify WebDriverinitialization.
py/selenium/webdriver/webkitgtk/webdriver.py
desired_capabilities
argument from theWebDriver
constructor.options
directly.logic.