React Native + Appium iOS elementByAccesibilityId.text()
问题 I'm writing tests for React Native using Appium + Jest for both Android and iOS. Here's my React Native element: <Text accessibilityLabel={'emailError'}>Invalid email</Text> Here's the Promise chain I created to extract the value of a React Native Text element: driver.elementByAccessibilityId('emailError') .then(error => error.text()) .then(errorText => expect(errorText).toBe('Invalid email')) On Android, this test passes. On iOS, this test fails, and errorText === 'emailError' . Why is this,