Skip to content

Instantly share code, notes, and snippets.

@unkillbob
Last active December 15, 2015 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unkillbob/5289135 to your computer and use it in GitHub Desktop.
Save unkillbob/5289135 to your computer and use it in GitHub Desktop.
Yeti and selenium grid

Intro

Documenting my efforts at getting a Yeti hub running that can connect to our company's existing selenium grid server.

Investigation

On server (http://selenium-grid):

~$ yeti --browser firefox --browser ie --server --wd-url http://localhost:4444

On client:

~$ yeti --hub http://selenium-grid:9000 path/to/Tests.html
Waiting for agents to connect at http://selenium-grid:9000/
When ready, press Enter to begin testing.

It appears that the --browser option is ignored when alongside --server.

Also tried:

~$ yeti --browser firefox --browser ie --hub http://selenium-grid:9000 path/to/Tests.html
Waiting for Hub to launch browsers...
✗ Whoops! Error: Remote error for method: batch, message: No WebDriver host was provided.

It seems that --browser only works when combined with --wd-url.

Solution

It turns out that you always need to supply the --wd-url and --browser (or -b) options to the client. Final working server/client commands were:

Server

~$ yeti --server --port 9000 --self-url http://selenium-grid

Client

~$ yeti -b firefox -b ie --wd-url http://selenium-grid:4444 --hub http://selenium-grid:9000 path/to/Tests.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment