Skip to content
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

Unable to pass applicationName as capability in serenity.driver.capabilities #3003

Open
remyanekkuth opened this issue Dec 28, 2022 · 4 comments

Comments

@remyanekkuth
Copy link

Recently migrated to selenium grid 4. We use serenity framework and was using serenity.driver.capabilities= ApplicationName:value for reading custom capability.

In selenium 4 now need to mention

“networkName:applicationName”: “value”
“Nodename:applicationName “:”nodeName”

But when I read as
Serenity.driver.capabilities=Nodename:applicationName:value

or with networkName.

it’s not pulling the selenium node.

Since selenium 3 had applicationName as capability, serenity.driver.capabilities =applicationName:value works …

how can I use the serenity.driver.capabilities in case of selenium 4

@remyanekkuth
Copy link
Author

@wakaleo

@remyanekkuth
Copy link
Author

Anyone faced the same issue? Please provide some inputs. @wakaleo

@DevQuandt
Copy link

I am currently facing the same problem here. I defined serenity.driver.capabilities=APPLICATION_NAME:value in serenity.properties but nothing is shown in selenium.

Worked with Selenium 3
Now switched to Serenity 3.5.0 and Selenium 4 and its not working

@ufroehling
Copy link

ufroehling commented Oct 12, 2023

Selenium 4 Grid has the option to pass metadata with the tests
See: https://www.selenium.dev/documentation/grid/getting_started/#metadata-in-tests
I would like to pass the application name with the capability se:name as in the example
chromeOptions.setCapability("se:name", "My simple test");
to see it in the Grid UI

But I could not figure out to do it in serenity.conf because only W3C standard capabilites are allowed for chrome and probably the other browsers. Is there another option to set this capability?

Or can we have a separate se:options{} group for the selenium grid like the other platforms that have their own capabilites e.g.: sauce:options or bstack.options?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants