Documenting my efforts at getting a Yeti hub running that can connect to our company's existing selenium grid server.
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
.
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