-
-
Notifications
You must be signed in to change notification settings - Fork 423
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
chore: skip connected device check if the caps had webDriverAgentUrl #2351
Conversation
lib/driver.js
Outdated
throw new Error(`Unknown device or simulator UDID: '${this.opts.udid}'`); | ||
// If the session specified this.opts.webDriverAgentUrl with a real device, | ||
// we can assume the user prepared the device properly already. | ||
if (this.isRealDevice() && this.opts.webDriverAgentUrl) { |
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.
Possibly this real device check is not necessary
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.
yes
lib/driver.js
Outdated
// If the session specified this.opts.webDriverAgentUrl with a real device, | ||
// we can assume the user prepared the device properly already. | ||
if (this.opts.webDriverAgentUrl) { | ||
this.logs.debug('Skip checking the device availability since the session specifies appium:webDriverAgentUrl'); |
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.
Skipping checking of
## [7.5.1](v7.5.0...v7.5.1) (2024-03-24) ### Miscellaneous Chores * skip connected device check if the caps had webDriverAgentUrl ([#2351](#2351)) ([407ad58](407ad58))
🎉 This PR is included in version 7.5.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
…2351) * chore: skip connected device check if the caps had webDriverAgentUrl * fix lint * Update driver.js * Update driver.js
## [7.5.1](v7.5.0...v7.5.1) (2024-03-24) ### Miscellaneous Chores * skip connected device check if the caps had webDriverAgentUrl ([#2351](#2351)) ([407ad58](407ad58))
I wondered if we simply can skip the connected devices check with
webDriverAgentUrl
sincewebDriverAgentUrl
usually means the caller prepared the device properly for the session