-
-
Notifications
You must be signed in to change notification settings - Fork 8k
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
[🚀 Feature]: Supporting custom capabilities mutators for Grid #13628
Comments
@Purus, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
What is the use case to override that class? |
The grid gets updated often with new version of browsers.. But the users may have used old capabilities during the test execution. Instead of failing the request, we would like to enforce the version and update the incoming enrichment to the actual version.. |
So the user would be testing with a different browser instead of the one they requested. I don't think that makes sense. |
Ok.. let me give some different use case used..
The grid will be updated frequently. Users can use the "browserName"
capability as "default" and the grid has to have an option to update the
browserName to actual version number( 121 or so).
Currently we have created a new custom node implementation and have made
changes to update the capabilities.
If this feature is out of box, it will avoid creating custom node
implementation.
…On Fri, 1 Mar, 2024, 7:31 pm Diego Molina, ***@***.***> wrote:
So the user would be testing with a different browser instead of the one
they requested. I don't think that makes sense.
—
Reply to this email directly, view it on GitHub
<#13628 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIHDZ33MRWQCAIKT6XV6CDYWCC33AVCNFSM6AAAAABDZ7UOEKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZTGI2TSMBSGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I theory, Grid supports |
Above use case is just one example and our grid is evolving.
Another use case is enforcing 2 different proxies by updating the
capabilities.
It would be good to support such mutations out of box.
…On Mon, 4 Mar, 2024, 6:23 pm Diego Molina, ***@***.***> wrote:
I theory, Grid supports stable, and it should match the recent browser
release. @titusfortner <https://github.com/titusfortner> worked on it.
—
Reply to this email directly, view it on GitHub
<#13628 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIHDZ3PB32IXGUUHPC5GNLYWRVDZAVCNFSM6AAAAABDZ7UOEKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZWGUYTQNRRGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Would you like to send a PR for it? |
This issue is looking for contributors. Please comment below or reach out to us through our IRC/Slack/Matrix channels if you are interested. |
Yes. I am interested..I will create a PR and would need your support for
review.
…On Mon, 4 Mar, 2024, 6:32 pm Diego Molina, ***@***.***> wrote:
Would you like to send a PR for it?
—
Reply to this email directly, view it on GitHub
<#13628 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIHDZ2LI7P5JQLFBUNSTDLYWRWG5AVCNFSM6AAAAABDZ7UOEKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZWGUZTKNRXGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Custom capability mutators(with ordering priority) can be placed as part of Grid setup and will be used. Fixes SeleniumHQ#13628
Custom capability mutators(with ordering priority) can be placed as part of Grid setup and will be used. Fixes SeleniumHQ#13628
@diemol can you please help with the review of the PR? This is my first contribution to selenium. |
Feature and motivation
This is similar to the feature proposed in #7478. But it was closed due to lack of user feedback and it was Selenium 3 Grid.
Currently we have an option to provide a custom slot matcher via mode config. Similarly there should be an option to specify custom capabilities mutators via configuration.
SlotMatchrer can only return a boolean after performing custom matching logic and the actual capabilities does not really understand any change.
The above closed issue highlights
SessionCapabilitiesMutator
but there are no way to provide custom capabilities mutators.In my use case, when capabilities have certain values I want to update them.
Usage example
As part of mode config, both slot matcher and capabilities mutators can also be specified.
It will help to configure the grid without customising the node just for this feature.
The text was updated successfully, but these errors were encountered: