angular / webdriver-manager

A binary manager for E2E testing
MIT License
224 stars 116 forks source link

feat(selenium-grid): Update opts.ts - run webdriver-manager as a node for Selenium grid hub #384

Closed filipzamorsky closed 5 years ago

filipzamorsky commented 5 years ago

Hi there, I would like to be able to run webdrive-manager as a node for Selenium grid hub. So I added few lines of code and it works for me.
Regards, Filip Zamorsky

Command: $webdriver-manager start --runAsNodeForHub http://localhost:4444/grid/register

cnishina commented 5 years ago

Could we write this against the master branch? https://github.com/angular/webdriver-manager/blob/master/lib/cli/index.ts

Register the vars here: https://github.com/angular/webdriver-manager/blob/master/lib/cli/index.ts#L71

Set the var to the start command here: https://github.com/angular/webdriver-manager/blob/master/lib/cli/index.ts#L128