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

feat: Add support of executeMethodMap #327

Merged
merged 37 commits into from
Feb 6, 2025
Merged

feat: Add support of executeMethodMap #327

merged 37 commits into from
Feb 6, 2025

Conversation

KazuCocoa
Copy link
Member

@KazuCocoa KazuCocoa commented Feb 1, 2025

BREAKING CHANGE: Arguments of the following driver methods were changed:

  • macosSetValue
  • macosClick
  • macosScroll
  • macosSwipe
  • macosRightClick
  • macosHover
  • macosClickAndDrag
  • macosClickAndDragAndHold
  • macosKeys
  • macosTap
  • doubleTap
  • macosPressAndHold
  • macosPressAndDrag
  • macosPressAndDragAndHold
  • macosSource
  • macosDeepLink
  • macosExecAppleScript
  • macosScreenshots
  • macosLaunchApp
  • macosActivateApp
  • macosTerminateApp
  • macosQueryAppState
  • startRecordingScreen
  • stopRecordingScreen

Note:

  • This PR removed mobile: setValue since this is the same as driver.send_keys and it is NOT in the README today.
  • macosPress didn't exist while macosPressAndHold was for the macos: press. This PR calls the macosPressAndHold for macos: press, this is a fix.

@KazuCocoa KazuCocoa marked this pull request as ready for review February 2, 2025 21:57
* @returns {void}
*/
function requireElementIdOrXY (elementId, x, y) {
if (!_.isString(elementId) && !_.isNumber(x) || !_.isNumber(y)) {
Copy link
Contributor

@mykola-mokhnach mykola-mokhnach Feb 6, 2025

Choose a reason for hiding this comment

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

The condition be similar to the below one: !_.isString(elementId) && !(_.isNumber(x) && _.isNumber(y))

@KazuCocoa KazuCocoa merged commit a6c9a6b into master Feb 6, 2025
11 checks passed
@KazuCocoa KazuCocoa deleted the map branch February 6, 2025 09:07
github-actions bot pushed a commit that referenced this pull request Feb 6, 2025
## [2.0.0](v1.20.5...v2.0.0) (2025-02-06)

### ⚠ BREAKING CHANGES

* Arguments of the following driver methods were changed:
- macosSetValue
- macosClick
- macosScroll
- macosSwipe
- macosRightClick
- macosHover
- macosClickAndDrag
- macosClickAndDragAndHold
- macosKeys
- macosTap
- doubleTap
- macosPressAndHold
- macosPressAndDrag
- macosPressAndDragAndHold
- macosSource
- macosDeepLink
- macosExecAppleScript
- macosScreenshots
- macosLaunchApp
- macosActivateApp
- macosTerminateApp
- macosQueryAppState
- startRecordingScreen
- stopRecordingScreen

### Features

* Add support of executeMethodMap ([#327](#327)) ([a6c9a6b](a6c9a6b))
Copy link

github-actions bot commented Feb 6, 2025

🎉 This PR is included in version 2.0.0 🎉

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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants