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

selenium-server-standalone: 2.53.0 -> 3.6.0 #30186

Merged
merged 1 commit into from Oct 11, 2017
Merged

Conversation

selaux
Copy link
Contributor

@selaux selaux commented Oct 7, 2017

Motivation for this change

Package update.

Things done

htmlunit driver has been updated as well.

  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

--add-flags ${optionalString chromeSupport "-Dwebdriver.chrome.driver=${chromedriver}/bin/chromedriver"} \
--add-flags "org.openqa.grid.selenium.GridLauncher"
--add-flags "org.openqa.grid.selenium.GridLauncherV3"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks like pkgs/development/tools/selenium/selendroid/default.nix needs also the new GridLauncherV3 argument.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx for the hint. I updated it as well.

@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
makeWrapper ${jdk}/bin/java $out/bin/selendroid-selenium \
--add-flags "-Dfile.encoding=UTF-8" \
--add-flags "-cp \"$out/share/lib/selendroid/${name}.jar:${selenium-server-standalone}/share/lib/${selenium-server-standalone.name}/${selenium-server-standalone.name}.jar\"" \
--add-flags "org.openqa.grid.selenium.GridLauncher"
--add-flags "org.openqa.grid.selenium.GridLauncherV3"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also suspect it needs to be updated: http://selendroid.io/ (websites states it is compatible with v3, but probably only in the latest version).
It would be great if you could do some basic testing (see if it can connect to the selenium server)

Copy link
Contributor Author

@selaux selaux Oct 9, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How would a basic test look like (I've got no experience with selendroid)? Maybe checking if devices can register like in the getting started docs?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also have never heard of selendroid before this pull request. I you can reach http://localhost:4444/wd/hub/status after starting this should be enough. I mainly want to make sure it can properly use the new selenium version.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Allright I tested it and it seems to startup fine with current androidsdk from nixpkgs. I didn't test to start an actual browser though, just startup and the status endpoint.

@Mic92 Mic92 merged commit 0777eae into NixOS:master Oct 11, 2017
@Mic92
Copy link
Member

Mic92 commented Oct 11, 2017

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants