-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Multiple elements matched on action Swipe. #433
Comments
I was just about to report the same, but for scrollTo instead of swipe. I'm having problem with this: I get "Multiple elements were matched" But this is okay: |
I have the same issue with nested scrollView:
toBeVisible and toExist work properly, but scroll/scrollTo/swipe do not work:
|
I think there are generally problems around matching scrollviews. I'm also keeping an eye on this one: #164 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
This might be a dupe of #164, but I think this is still relevant. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Still not working on latest Detox. |
I can confirm this is still not working.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Please unstale, this is still an issue :) |
Confirmed still an issue, pasted error below
Error: Multiple UI elements matched for the given criteria.
|
The fact that @ma-pe found different behaviours in
|
same issue. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
The issue has been closed for inactivity. |
unstale unclose. I'll try to setup something for reproducing the issue in the next days. |
Multiple elements issues have been resolved recently. Please try a new build and if it still occurs, open a new issue, rather than bumping an old one. Thanks |
Hi.
When I try to swipe a view by it's type and index detox simply ignores the index and gives me a 'Multiple UI elements matched for the criteria' error .
I don´t have access to the apps code so I can´t put a testId on the view.
My code:
await element(by.type('UINavigationTransitionView')).atIndex(0).swipe('right', 'fast');
error:
Error: Error: Multiple UI elements matched for the given criteria.
Exception with Action: {
"Action Name" : "Swipe Right for duration 0.1",
"Element Matcher" : "((((kindOfClass('UINavigationTransitionView') && !(kindOfClass('RCTScrollView'))) || (kindOfClass('UIScrollView') && ((kindOfClass('UIView') || respondsToSelector(accessibilityContainer)) && ancestorThatMatches((kindOfClass('UINavigationTransitionView') && kindOfClass('RCTScrollView')))))) && !(kindOfClass('RCTScrollView'))) || (kindOfClass('UIScrollView') && ((kindOfClass('UIView') || respondsToSelector(accessibilityContainer)) && ancestorThatMatches((((kindOfClass('UINavigationTransitionView') && !(kindOfClass('RCTScrollView'))) || (kindOfClass('UIScrollView') && ((kindOfClass('UIView') || respondsToSelector(accessibilityContainer)) && ancestorThatMatches((kindOfClass('UINavigationTransitionView') && kindOfClass('RCTScrollView')))))) && kindOfClass('RCTScrollView'))))))",
"Recovery Suggestion" : "Create a more specific matcher to uniquely match an element. If that's not possible then use atIndex: to select from one of the matched elements but the order of elements may change."
}
Error Trace: [
{
"Description" : "Multiple elements were matched: (
"<UINavigationTransitionView:0x7f8f30e2a930; AX=N; AX.frame={{0, 0}, {414, 736}}; AX.activationPoint={207, 368}; AX.traits='UIAccessibilityTraitNone'; AX.focused='N'; frame={{0, 0}, {414, 736}}; opaque; alpha=1>",
"<UINavigationTransitionView:0x7f8f3304eab0; AX=N; AX.frame={{0, 800}, {414, 672}}; AX.activationPoint={207, 1136}; AX.traits='UIAccessibilityTraitNone'; AX.focused='N'; frame={{0, 0}, {414, 672}}; opaque; alpha=1>",
"<UINavigationTransitionView:0x7f8f30d63200; AX=N; AX.frame={{0, 800}, {414, 672}}; AX.activationPoint={207, 1136}; AX.traits='UIAccessibilityTraitNone'; AX.focused='N'; frame={{0, 0}, {414, 672}}; opaque; alpha=1>",
). Please use selection matchers to narrow the selection down to single element.",
"Error Domain" : "com.google.earlgrey.ElementInteractionErrorDomain",
"Error Code" : "5",
"File Name" : "GREYElementInteraction.m",
"Function Name" : "-[GREYElementInteraction grey_errorForMultipleMatchingElements:withMatchedElementsIndexOutOfBounds:]",
"Line" : "956"
}
]
at Client._callee8$ (node_modules/detox/lib/client/Client.js:57:19)
at tryCatch (node_modules/babel-polyfill/node_modules/regenerator-runtime/runtime.js:65:40)
at Generator.invoke [as _invoke] (node_modules/babel-polyfill/node_modules/regenerator-runtime/runtime.js:303:22)
at Generator.prototype.(anonymous function) [as throw] (node_modules/babel-polyfill/node_modules/regenerator-runtime/runtime.js:117:21)
at step (node_modules/detox/lib/client/Client.js:1:809)
at node_modules/detox/lib/client/Client.js:1:1008
at
at process._tickCallback (internal/process/next_tick.js:188:7)
child_process.js:641
throw err;
^
Error: Command failed: node_modules/.bin/mocha e2e --opts e2e/mocha.opts
The text was updated successfully, but these errors were encountered: