mercredi 27 septembre 2017

Javascript React-Native: Icon, UI, AccessibilityLabel

in our react-native project we have

<Item>
              <Icon name="user" />
              <Input accessibilityLabel={'username'} placeholder="Username" .../>
</Item>

The problem is I need to use the accessibilityLabel for e2e testing using Appium and Cucumber.js

The icon produces the following in Accessibility Inspector.

enter image description here

Without using Xpath, is there any way to get around this?

react-native-cli: 2.0.1 node: v8.4.0 appium: v1.7.1

Aucun commentaire:

Enregistrer un commentaire