-
-
Notifications
You must be signed in to change notification settings - Fork 513
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
Serenity chromedriver capabilities are not working with BeforeAWebdriverScenario, but working with chrome.switches. #2513
Comments
Can you propose a PR? |
@wakaleo Is this a known issue? |
No. I'd recommend putting a breakpoint and seeing what the code is doing behind the scenes. |
I tried and observed that Serenity is reading and setting all the capabilities in the background, also printing it on the console as well, during execution. But still, it's not applying. |
Have a look at the ChromeDriverProvider class - that is where the new ChromeDriver instance is created. |
WebDriver newDriver = ProvideNewDriver.withConfiguration(environmentVariables, Below is the value passed for enhancedChromeOptions variable: Capabilities {acceptInsecureCerts: false, acceptSslCerts: true, browserName: chrome, goog:chromeOptions: {args: [--disable-gpu, --start-maximized, use-fake-device-for-media-s..., use-fake-ui-for-media-stream], extensions: [], prefs: {download.default_directory: C:\Users\Ashish\git\qa-te..., download.prompt_for_download: false, plugins.always_open_pdf_externally: true, plugins.plugins_disabled: [Adobe Flash Player], profile.default_content_settings.popups: 0}}, loggingPrefs: org.openqa.selenium.logging..., platform: ANY, version: } I personally don't see any issue with this. |
If you can update your sample project so that it runs in all environments (no tests currently run when you run mvn verify) and reproduces the issue, it will be easier for folk to pick it up and see if anything is amiss. |
Done, |
Your sample project only works on Windows. |
Added driver for Linux and Mac as well |
@wakaleo did you get a chance to look into it? |
Is it urgent? Is it something you need for your work? |
not that urgent, as chrome.switches, are already there as a workaround. |
@wakaleo Did you get a chance to look into it? |
No |
Hi all, Currently i am running serenity bdd tests with browser stack, looks like the tests are running on browserstack but not being taking browser capabilities, can anyone please help me whats the wrong here? |
created a sample repo with the same issue.
https://github.com/tiwari90/SerenityCapabilityIssue.git
The text was updated successfully, but these errors were encountered: