Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
In the TableView, Each cell has detail disclosure button ( >), when pressed will redirect the user to another ViewController.

Error says "UI Testing Failure - No matches found for Button" . Following is my code

for (XCUIElement *cell in tablesQuery.cells.staticTexts.allElementsBoundByIndex) {
[cell tap];
XCUIElementQuery *elementsQuery = cell.buttons;
XCUIElement *detailsButton = elementsQuery.buttons[@"right info arrow"];
[detailsButton tap];
}

Need Help!

Thanks
Posted

1 solution

I think your access path or accessor is wrong.

C++
for (XCUIElement *cell in tablesQuery.cells.allElementsBoundByIndex) {


else you may access some wrong elements make some output.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900