-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[py] Update Remote Connection creation in driver classes #12364
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
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## trunk #12364 +/- ##
==========================================
+ Coverage 57.56% 57.76% +0.19%
==========================================
Files 86 88 +2
Lines 5305 5332 +27
Branches 221 226 +5
==========================================
+ Hits 3054 3080 +26
+ Misses 2030 2026 -4
- Partials 221 226 +5 ☔ View full report in Codecov by Sentry. |
e20d474 to
b5b3f08
Compare
|
Install the same tox version with the command used in GitHub actions and then run the same command. |
|
Yes, that's the version I'm using... https://github.com/SeleniumHQ/selenium/blob/selenium-4.10.0/.github/workflows/ci-python.yml#L30 |
IIRC, the grouping was created so that all Blink based browsers can use common code but allow for differences since the Blink based browsers have their own drivers. I wonder if we would have to do something slightly different for
|
This part of the code is kind of hacky. This make it easier to subclass or just wholesale replace these objects with custom implementations. And you don't have to think about inheritance trees in a Java like manner. |
isaulv
left a comment
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.
I think this is good to go for now.
It provides consistency even if there are somethings that can be pulled to the parent class, but I would have to see how each driver behaves.
chromium won't match browser name in remote webdriver get_remote_connection()
|
Ok, finally looking at this again...
That being said... I'm not sure the end user can actually use this? I probably should create some tests as well 😂 |
|
Ok, I added the part that fixes the bug, but decided not to move logic from subclass to the superclass. |
Description
Motivation and Context
Tidying some things up in preparation for another change
Considerations
quit()methods and putself.service.stop()in the currently unusedstop_client()method (https://github.com/SeleniumHQ/selenium/blob/selenium-4.10.0/py/selenium/webdriver/remote/webdriver.py#L467-L471)