[py] remove desired capabilities argument for Webkitgtk#14128
[py] remove desired capabilities argument for Webkitgtk#14128titusfortner merged 7 commits intoSeleniumHQ:trunkfrom
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_capabilitiesargument from theWebDriverconstructor inwebkitgtkmodule.optionsdirectly, simplifying the initialization process.desired_capabilitieswithoptionscapabilities.Changes walkthrough 📝
webdriver.py
Removedesired_capabilitiesargument and simplify WebDriverinitialization.
py/selenium/webdriver/webkitgtk/webdriver.py
desired_capabilitiesargument from theWebDriverconstructor.optionsdirectly.logic.