I tried again adding the arguments (String os, String version, String browser, String deviceName, String deviceOrientation) to the constructor and it actually fixed the error. Thanks @raff.
I guess I had to mess up something else when I tried for the first time