-
Notifications
You must be signed in to change notification settings - Fork 14
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
json: cannot unmarshal array into Go struct field Caps.capabilities.firstMatch.selenoid:options.enableVNC of type bool #265
Comments
Hello @Valeriy2013 ! |
Hello! I'm coming in from the selenium issue that was linked. Sorry, it seems completely unrelated (I'm basically certain it is, but I can't really tell what the bug is here so I can't be definitive). |
Hello @mialeska using NUnit.Framework; using OpenQA.Selenium; namespace Tests.Playground
}` Also I checked passing the single argument in settings.json file - it didn't help. I tried to debug and see that it throws here:
|
I can reproduce the issue with raw selenium: var options = new ChromeOptions();
options.AddAdditionalOption("selenoid:options", new { enableVNC = true, enableVideo = false });
var driver = new ChromeDriver(options); I will log a bug on the Selenium repo. |
The fix on the Selenium side has been merged and will be part of the next release. I'm not familiar with this project, like I said I came in here when my issue was linked. As such, I don't know if the Selenium bug fix addresses this issue. If you're particularly adventurous, the fix is in Selenium's nightly release (instructions in the repo) and you can try it out using that |
@Valeriy2013 I've updated Aquality.Selenium with the latest selenium version (4.27.0) which should include the fix mentioned by Michael above. Please check if it is working for you now. If not, it will need to wait until we implement aquality-automation/aquality-selenium-core-dotnet#122 |
Hi @mialeska. In version 4.22.1 still see the issue: 2024/11/29 18:56:42 [7] [BAD_JSON_FORMAT] [json: cannot unmarshal array into Go struct field Caps.capabilities.firstMatch.selenoid:options of type session.Caps]
|
After upgrading from 4.19.0 to 4.20.0 I observe such error: " json: cannot unmarshal array into Go struct field Caps.capabilities.firstMatch.selenoid:options.enableVNC of type bool"
I use selenoid to run the tests written in C#.
it seems related to changing NewtonSoft.Json library to System.Text.Json in Selenium package
settings.json file:
{ "environment": "Local", "browserName": "chrome", "isRemote": true, "remoteConnectionUrl": "http://localhost:4444/wd/hub", "isElementHighlightEnabled": true, "driverSettings": { "chrome": { "capabilities": { "selenoid:options": { "enableVNC": true, "enableVideo": true, "enableLogs": true }, "unhandledPromptBehavior": "ignore" }, "options": { "intl.accept_languages": "en", "safebrowsing.enabled": true, "profile.default_content_settings.popups": 0, "disable-popup-blocking": true, "download.prompt_for_download": false, "download.default_directory": "", "acceptInsecureCerts": true, "download.extensions_to_open": "application/octet-stream" }, "startArguments": [ "window-size=1920,1080", "--no-sandbox", "--disable-infobars", "--disable-notifications", "--disable-popup-blocking", "--disable-gpu", "--ignore-certificate-errors", "--disable-search-engine-choice-screen" ], "pageLoadStrategy": "Normal" } }, "timeouts": { "timeoutImplicit": 0, "timeoutCondition": 30, "timeoutScript": 30, "timeoutPageLoad": 60, "timeoutPollingInterval": 300, "timeoutCommand": 60 }, "retry": { "number": 2, "pollingInterval": 300 }, "logger": { "language": "en", "logPageSource": true }, "elementCache": { "isEnabled": false } }
The text was updated successfully, but these errors were encountered: