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

fix: make whitespace in execute methods insignificant #1628

Merged

Conversation

boneskull
Copy link
Contributor

How this works may change in the future, but XCUITestDriver users expect to be able to use mobile:foo instead of or in addition to mobile: foo.

Any change on the Appium side affects more than just this driver, so the change should happen here for now to fix the extant regression.

In addition, updated package-lock.json since it was out-of-date w/r/t the package version. See appium/appium#18553

Closes appium/appium#18551

@boneskull boneskull added the bug label Apr 20, 2023
@boneskull boneskull self-assigned this Apr 20, 2023
@boneskull boneskull force-pushed the boneskull/insignificant-whitespace-in-exec-methods branch from 2cc3d59 to 0787517 Compare April 20, 2023 18:20
lib/commands/execute.js Outdated Show resolved Hide resolved
@boneskull boneskull force-pushed the boneskull/insignificant-whitespace-in-exec-methods branch from 0787517 to a311069 Compare April 20, 2023 19:38
@boneskull
Copy link
Contributor Author

@jlipps @mykola-mokhnach I've updated this to allow extra whitespace as well.

@boneskull boneskull force-pushed the boneskull/insignificant-whitespace-in-exec-methods branch from a311069 to 9f1a69a Compare April 20, 2023 19:40
How this works may change in the future, but XCUITestDriver users expect to be able to use `mobile:foo` instead of or in addition to `mobile: foo`.  In addition, users can provide `mobile:   foo` with an arbitrary amount of whitespace or ` mobile: foo ` with leading/trailing whitespace.  Or a combination thereof.

Any change on the Appium side affects more than just this driver, so the change should happen here for now to fix the extant regression.

In addition, updated `package-lock.json` since it was out-of-date w/r/t the package version.  See appium/appium#18553

Closes appium/appium#18551
@boneskull boneskull force-pushed the boneskull/insignificant-whitespace-in-exec-methods branch from 9f1a69a to fca78c0 Compare April 20, 2023 20:06
@jlipps
Copy link
Member

jlipps commented Apr 21, 2023

@mykola-mokhnach please merge when satisfied, i don't know how to interpret CI flakes for this repo

@mykola-mokhnach mykola-mokhnach merged commit 1dc7777 into master Apr 21, 2023
@mykola-mokhnach mykola-mokhnach deleted the boneskull/insignificant-whitespace-in-exec-methods branch April 21, 2023 17:53
github-actions bot pushed a commit that referenced this pull request Apr 21, 2023
## [4.24.2](v4.24.1...v4.24.2) (2023-04-21)

### Bug Fixes

* make whitespace in execute methods insignificant ([#1628](#1628)) ([1dc7777](1dc7777))
@github-actions
Copy link
Contributor

🎉 This PR is included in version 4.24.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

self.driver.execute_script("mobile:deviceInfo").get('model') no longer works?
4 participants