grey_accessibilityValue not working
ilahomesick opened this issue · 0 comments
ilahomesick commented
Hi, I'm trying to use the accessibilityValue of a cell instead of Accessibility ID because i need to use it for a different purpose, I've set the code as accessibility value and i can also see it using the accessibility inspector, but when i call the grey_accessibilityValue function, it doesn't work and the test fails.
I'm 100% sure that the cell is there and the code I'm passing is correct, because if i use grey_accessibilityID instead and I assign the code to accessibilityIdentifier, it works without any problem.
Error:
“User Info” : {
“NSLocalizedDescription” : “Interaction cannot continue because the desired element was not found.”
},
“Error Info” : {
“Search API Info” : “”,
“Recovery Suggestion” : “Check if the element exists in the UI hierarchy printed below. If it exists, adjust the matcher so that it accurately matches element.“,
“Assertion Criteria” : “assertWithMatcher:sufficientlyVisible(Expected: 0.750000, Actual: 0.000000)“,
“Element Matcher” : “(((respondsToSelector(isAccessibilityElement) && isAccessibilityElement) && accessibilityValue(‘s8vx-0eoc’)) && minimumVisiblePercent(Expected: 0.100000, Actual: 0.000000))”
The element is present in the hierarchy:
| | | | | | |--<Volo.ActiveOrderHistoryCell:0x7f844cf08ae0; isAccessible=N; AX.id=‘active_order_cell’; AX.value=‘s8vx-0eoc’; AX.frame={{0, 132}, {414, 92.666664123535156}}; AX.activationPoint={207, 178.33333206176758}; AX.traits=‘UIAccessibilityTraitNone’; AX.focused=‘N’; frame={{0, 44}, {414, 92.666664123535156}}; opaque; alpha=1; text=‘’>
| | | | | | |