-
Notifications
You must be signed in to change notification settings - Fork 228
Support for ChromeDriver arguments #191
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left one very minor comment, thanks for adding support for this 👍
lib/application.js
Outdated
@@ -144,6 +146,10 @@ Application.prototype.createClient = function () { | |||
args.push('spectron-env-' + name + '=' + self.env[name]) | |||
} | |||
|
|||
for (var index in self.chromeDriverArgs) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be a little cleaner written in the style of line 141:
self.chromeDriverArgs.forEach(function (arg) {
args.push(arg)
})
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated it 👍
README.md
Outdated
See [here](https://sites.google.com/a/chromium.org/chromedriver/capabilities) | ||
for details on the Chrome arguments. | ||
* `args` - Array of arguments to pass to the Electron application. | ||
* `chromeDriverArgs` - Array of arguments to pass to the ChromeDriver. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this can be just to ChromeDriver
instead of to the ChromeDriver
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@kevinsawicki thanks, I forgot to add typings initially -> added them in 694288e now. |
@michelkaporin thanks for this, great work 👍 I've published this in 3.7.1. The 3.7.x line supports Electron 1.7.x, so if you need this in Electron 1.6.x, let me know and we can merge this into that release line and cut a new 3.6.x spectron release. |
@kevinsawicki it would be great if you can cut a new 3.6.x spectron release please, as we are on Electron 1.6.6 currently. |
Sure thing, published as 3.6.4 via #195 |
Perfect, thank you @kevinsawicki! |
Added capability of providing ChromeDriver arguments. This resolves #189.