-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[py] Update WPEWebKit support code #13278
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be honest, I think these classes should be in a separate library from Selenium. You should be able to subclass what is there and have it work properly. (If you can't, we should fix that). If it's in Selenium, it should match what the other drivers are doing.
e090706
to
64353dc
Compare
2165aa0
to
6420832
Compare
(Updated after missign a tox fix and rebase) |
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## trunk #13278 +/- ##
==========================================
+ Coverage 58.07% 58.18% +0.10%
==========================================
Files 88 88
Lines 5340 5330 -10
Branches 224 224
==========================================
Hits 3101 3101
+ Misses 2015 2005 -10
Partials 224 224 ☔ View full report in Codecov by Sentry. |
- Naming conventions, as WPEWebKit does not follow the Simple capitalized name scheme - (TODO): Driver location finding
- To match parent Service class Amend into Update WPEWebKit service parameter
Receiving a Service instance instead of service details spread out
1f6b7ce
to
f1bd50e
Compare
Pinging @titusfortner for review |
https://bugs.webkit.org/show_bug.cgi?id=267836 Reviewed by NOBODY (OOPS!). Bump selenium tests to upstream 907b2197dada02, which includes the fixes for WPE from SeleniumHQ/selenium#13278 The changes in our runner code were minimal, basically moving the driver name to lowercase. * Tools/Scripts/webkitpy/webdriver_tests/webdriver_driver_wpe.py: (WebDriverWPE.selenium_name): * WebDriverTests/imported/selenium/common/: Updated to new revision * WebDriverTests/imported/selenium/importer.json: Update hash to be imported * WebDriverTests/imported/selenium/py: Updated to new revision
https://bugs.webkit.org/show_bug.cgi?id=267836 Reviewed by Carlos Garcia Campos. Bump selenium tests to upstream 907b2197dada02, which includes the fixes for WPE from SeleniumHQ/selenium#13278 The changes in our runner code were minimal, basically moving the driver name to lowercase. * Tools/Scripts/webkitpy/webdriver_tests/webdriver_driver_wpe.py: (WebDriverWPE.selenium_name): * WebDriverTests/imported/selenium/common/: Updated to new revision * WebDriverTests/imported/selenium/importer.json: Update hash to be imported * WebDriverTests/imported/selenium/py: Updated to new revision Canonical link: https://commits.webkit.org/276878@main
Description
This PR changes the support code around WPEWebKit helper modules after the last update, a couple of years ago.
Motivation and Context
In the recent Selenium versions, some changes in the way the driver classes are named and the move towards options instead of raw capabilities dictionaries, alongside other minor issues, made the existing WPEWebkit module to fail to create the driver correctly. For example, failing either to find the right service executable or failing the capability verification.
The WPEWebKit is a WebKit port focused on embedded devices. Developers creating WebApps for these devices can take advantage of the remote webdriver (used by these helper classes) to automate testing directly on the device.
Types of changes
Checklist
wpewebkit.Service
parameter, but they're not yet covered by the API docs. Should I add them in a separate PR?//py:test-wpewebkit
passes, with some specific failures that will be dealt in a separate PR.