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

chore: skip connected device check if the caps had webDriverAgentUrl #2351

Merged
merged 5 commits into from
Mar 24, 2024

Conversation

KazuCocoa
Copy link
Member

I wondered if we simply can skip the connected devices check with webDriverAgentUrl since webDriverAgentUrl usually means the caller prepared the device properly for the session

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) {
Copy link
Member Author

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

Copy link
Contributor

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');
Copy link
Contributor

Choose a reason for hiding this comment

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

Skipping checking of

@KazuCocoa KazuCocoa merged commit 407ad58 into master Mar 24, 2024
8 checks passed
@KazuCocoa KazuCocoa deleted the skip-connected-device-check branch March 24, 2024 08:31
github-actions bot pushed a commit that referenced this pull request Mar 24, 2024
## [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))
Copy link
Contributor

🎉 This PR is included in version 7.5.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

KazuCocoa added a commit that referenced this pull request Mar 25, 2024
…2351)

* chore: skip connected device check if the caps had webDriverAgentUrl

* fix lint

* Update driver.js

* Update driver.js
KazuCocoa pushed a commit that referenced this pull request Mar 25, 2024
## [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))
KazuCocoa added a commit that referenced this pull request Mar 25, 2024
github-actions bot pushed a commit that referenced this pull request Mar 25, 2024
## [7.5.3](v7.5.2...v7.5.3) (2024-03-25)

### Bug Fixes

* build error ([#2356](#2356)) ([5c5ebc3](5c5ebc3))
* typo by [#2351](#2351) ([63589a1](63589a1))

### Miscellaneous Chores

* include devicectl in IOSDeploy object ([#2352](#2352)) ([6c5abd1](6c5abd1))
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.

2 participants