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 configure remote file download in serenity.conf #3196

Open
scormaq opened this issue Jul 21, 2023 · 1 comment
Open

Unable to configure remote file download in serenity.conf #3196

scormaq opened this issue Jul 21, 2023 · 1 comment

Comments

@scormaq
Copy link
Contributor

scormaq commented Jul 21, 2023

With Selenium 4.9.0+ is it possible to retrieve files downloaded on remote node : https://www.selenium.dev/documentation/grid/configuration/cli_options/#enabling-managed-downloads-by-the-node

With this feature it's easy now to test file downloads in docker.
To enable this feature, I have to do some setup, for example, to pass next capability:

options.setCapability("se:downloadsEnabled", true);

How to achieve this through configuring serenity.conf ? I tried to play around example, provided at https://serenity-bdd.github.io/blog/2023/02/02/index , but nothing works for me (either my option is ignored or driver fails to start with error like Illegal key values seen in w3c capabilities: ["se:downloadsEnabled"]).

Now the only way to have downloads enabled is to ignore serenity.conf and use programmatic way to configure driver.

@Paulo1661
Copy link

Hi, i notice the same thing, i tried with this property serenity.driver.capabilities=se:downloadsEnabled:true in but doesn't work either
Currently as you said the only way is to set it programmaticaly
public class RemoteDownloadOptionEnhancer implements BeforeAWebdriverScenario { @Override public MutableCapabilities apply(EnvironmentVariables environmentVariables, SupportedWebDriver driver, TestOutcome testOutcome, MutableCapabilities capabilities) { capabilities.setCapability("se:downloadsEnabled", true); return capabilities; } }

In the serenity.conf
serenity{ extension.packages = remote_download_option_enhancer_package }

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

2 participants