-
-
Notifications
You must be signed in to change notification settings - Fork 210
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
add chromedriverPorts cap which allows specifying multiple ports or a range #529
Conversation
oh, also deprecate |
while i was in there i also removed a discrepancy where the bootstrapPort opt was only a CLI opt and not a desired cap. now it can be either like all the rest. |
lib/commands/context.js
Outdated
// defining a port range | ||
log.debug(`Finding a free port for chromedriver using spec ${JSON.stringify(opts.chromedriverPorts)}`); | ||
let foundPort = null; | ||
for (let potentialPort of opts.chromedriverPorts) { |
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.
const?
lib/commands/context.js
Outdated
@@ -265,16 +265,64 @@ async function setupExistingChromedriver (chromedriver) { | |||
return chromedriver; | |||
} | |||
|
|||
async function getChromedriverPort (opts) { |
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.
docstring?
opts.chromeDriverPort = await getPort(); | ||
log.debug(`A port was not given, using random port: ${opts.chromeDriverPort}`); | ||
if (opts.chromeDriverPort) { | ||
log.warn(`The 'chromeDriverPort' capability is deprecated. Please use 'chromedriverPort' instead`); |
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.
👍
ok, feedback addressed. this PR now also depends on appium/appium-base-driver#314 |
… range this helps support the multiple webview case
… for getChromedriverPort
02d0e96
to
49155e4
Compare
a note need to update after this: |
published in 4.14.0 |
this helps support the multiple webview case, and would provide a supported 'workaround' for e.g. appium/appium#11820