Je suis nouveau à ui-testing. Pendant l'enregistrement, quand je tape sur vue ui-collection premier objet est affiché sur l'interface utilisateur et correspondant au code écrit dans la méthode de test exemple:UItesting: Cliquez sur UIcollectionview puis testez-le get failed
XCUIElement *window = [[app childrenMatchingType:XCUIElementTypeWindow] elementBoundByIndex:0];
XCUIElement *element2 = [[[[window childrenMatchingType:XCUIElementTypeOther].element childrenMatchingType:XCUIElementTypeOther].element childrenMatchingType:XCUIElementTypeOther].element childrenMatchingType:XCUIElementTypeOther].element;
[element2 tap];
Et lors de l'automatisation de la méthode exemple de test, il est impossible d'extraire le premier objet de la vue ui-collection. S'il vous plaît suggérer un moyen de le faire. Merci d'avance.
je viens de trouver un moyen de le faire simplement décocher accessibili ty activer dans l'inspecteur d'attributs et re exécuter l'enregistrement. –