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

org.openqa.selenium.WebDriverException: json: cannot unmarshal string into Go struct field Caps.sessionTimeout of type uint32 #134

Open
YogeshMahajan1903 opened this issue Nov 21, 2018 · 11 comments

Comments

@YogeshMahajan1903
Copy link

Observed with Centos-7, with Selenium - 3.11 & Selenoid -1.8.2

FirefoxOptions firefoxOption = new FirefoxOptions(); firefoxOption.setAcceptInsecureCerts(true); firefoxOption.setHeadless(false); firefoxOption.addArguments("-foreground"); firefoxOption.setCapability("version", version); firefoxOption.setCapability("enableVNC", true); firefoxOption.setCapability("enableVideo", true); firefoxOption.setCapability("videoName",videoName+".mp4"); firefoxOption.setCapability("logName",videoName+".log"); firefoxOption.setCapability("name",videoName); firefoxOption.setCapability("platform", Platform.LINUX); firefoxOption.setCapability("resolve_ip", false); firefoxOption.setCapability("sessionTimeout", "60s");

When launched with above configuration, Exception thrown - org.openqa.selenium.WebDriverException: json: cannot unmarshal string into Go struct field Caps.sessionTimeout of type uint32.

@vania-pooh
Copy link
Member

@YogeshMahajan1903 see Breaking Changes section here: https://github.com/aerokube/selenoid/releases/tag/1.8.0

@YogeshMahajan1903
Copy link
Author

Yup, I had checked above issue before logging issue. Tried all formats - ""60s" or "1m" or "2m10s" or "1h"" None of it works

@vania-pooh
Copy link
Member

@YogeshMahajan1903 in that case you have old Selenoid version which required just a number of seconds:

sessionTimeout = 60

@YogeshMahajan1903
Copy link
Author

sessionTimeout = 60 this works with Selenoid -1.7.2.
With Selenoid neither 60 nor 60s works

@YogeshMahajan1903
Copy link
Author

sessionTimeout = 60 this works with Selenoid -1.7.2.
With Selenoid 1.8.2 neither 60 nor 60s works

@vania-pooh
Copy link
Member

@YogeshMahajan1903 will check soon.

@vania-pooh
Copy link
Member

@YogeshMahajan1903 ok, that's an issue in Firefox images. Should work with Firefox 63.0 image but will not work before. I will rebuild images during next weeks.

@YogeshMahajan1903
Copy link
Author

It works with Firefox - 63. So I guess images need to be rebuild for older version

@vania-pooh
Copy link
Member

vania-pooh commented Nov 22, 2018

@YogeshMahajan1903 yes. That's not a Selenoid code issue. It will also work with any other non-Firefox image.

@vania-pooh vania-pooh transferred this issue from aerokube/selenoid May 21, 2019
@Asgoret
Copy link

Asgoret commented Apr 22, 2020

Still here :)

@vania-pooh
Copy link
Member

@Asgoret we know.

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