Skip to content

json: cannot unmarshal array into Go struct field Caps.capabilities.firstMatch.selenoid:options.enableVNC of type bool #265

@Valeriy2013

Description

@Valeriy2013

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
image

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 } }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions