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

feat(selenium-grid): run webdriver-manager as a selenium-grid node (merge against master branch) #386

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

filipzamorsky
Copy link

@filipzamorsky filipzamorsky commented May 31, 2019

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

@filipzamorsky filipzamorsky changed the title feat(selenium-grid): Run webdriver-manager as a selenium-grid node feat(selenium-grid): Run webdriver-manager as a selenium-grid node (merge against master branch) May 31, 2019
@filipzamorsky filipzamorsky changed the title feat(selenium-grid): Run webdriver-manager as a selenium-grid node (merge against master branch) feat(selenium-grid): run webdriver-manager as a selenium-grid node (merge against master branch) May 31, 2019
@heathkit heathkit requested a review from cnishina June 5, 2019 18:22
Copy link
Member

@cnishina cnishina left a comment

Choose a reason for hiding this comment

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

Looks good so far. I would rebase. There's a few changes that I made

README.md Outdated Show resolved Hide resolved
const gridNodeOption: yargs.Options = {
describe: 'Start the selenium grid with role set to "node".',
type: 'string'
};
Copy link
Member

Choose a reason for hiding this comment

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

I would rebase. STANDALONE is now SELENIUM and SELENIUM_ALIAS

Could we call this as SELENIUM_GRID_URL?
We should use underscores. So the string would be 'selenium_grid_url'

And have one called SELENIUM_GRID_URL_ALIAS?
And this string would be 'standalone_grid_url'

I am trying to standardize this and add a README for this. I have a few flags to fix that I also need to fix.

Copy link
Author

Choose a reason for hiding this comment

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

ok - done

lib/cli/index.ts Outdated
@@ -139,6 +144,7 @@ yargs
.option(SELENIUM_PORT, seleniumPort)
.option(STANDALONE, standaloneOption)
.option(STANDALONE_NODE, standaloneNodeOption)
.option(GRID_NODE, gridNodeOption)
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

ok - done

@@ -37,6 +37,8 @@ export interface Server {
version?: string;
// Run as role = node option.
runAsNode?: boolean;
// Run as grid node role = hub registration URL path.
gridNode?: string;
Copy link
Member

Choose a reason for hiding this comment

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

Let's call this gridUrl or nodeGridUrl?

Copy link
Author

Choose a reason for hiding this comment

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

ok - done

if (argv.standalone as boolean) {
options.server = {};
options.server.name = 'selenium';
options.server.runAsNode = argv.standalone_node as boolean;
options.server.gridNode = argv.gridNode as string;
Copy link
Member

Choose a reason for hiding this comment

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

When grabbing things from the argv, we should use the selenium_grid_url and not the standalone_ alias

Copy link
Author

Choose a reason for hiding this comment

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

ok - done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants