This repository was archived by the owner on Oct 25, 2023. It is now read-only.
feat: Support multiple image match in findByImage#449
Merged
mykola-mokhnach merged 18 commits intoappium:masterfrom Feb 19, 2021
khaong:master
Merged
feat: Support multiple image match in findByImage#449mykola-mokhnach merged 18 commits intoappium:masterfrom khaong:master
mykola-mokhnach merged 18 commits intoappium:masterfrom
khaong:master
Conversation
Contributor
|
Please bump the minimum version of the appium-support module in package.json |
added 2 commits
January 15, 2021 11:45
refactor: remove MATCH_TEMPLATE_MULTIPLE and use the options instead to denote multiple match behaviour fix: don't mess with the result for the other modes
KazuCocoa
reviewed
Jan 22, 2021
Contributor
|
@khaong Do you have time to finish the PR? |
Contributor
Author
|
Apologies, things got busy (we came out of lockdown in Melbourne 😅) - I'll spend some time on it this weekend |
| result = await imageUtil.getImageOccurrence(img1, img2, options); | ||
|
|
||
| if (options.multiple) { | ||
| return result.multiple.map(convertVisualizationToBase64); |
mykola-mokhnach
approved these changes
Feb 19, 2021
4 tasks
KazuCocoa
added a commit
to appium-boneyard/appium-plugins
that referenced
this pull request
May 21, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi,
For my appium use case, there may be multiple places on the screen which has the same image and I'd like to find them all.
I am not a javascript dev by trade, so would definitely welcome any comments on this!
Thanks
Alex
Depends on these changes in appium-support: appium/appium-support#212 -> now published in 2.50
TODO: bump the appium-support version number to bring in those changes