title: Appium element.text() returns element accessibilityLabel instead of text
body: <p>I am starting to test my React Native app with Appium. I have a simple login scenario where I expect the app <code>status</code> to be <code>'Logged in'</code> after some username and password are entered and submitted. I am running the test on an iPhone X 12.2 simulator.</p>
  
  <p>However the test fails with this error:</p>
  
  <pre><code>Expected: "Logged in"
  Received: "status"
  </code></pre>
  
  <p>Somehow the text value is not received correctly. So <strong>how to get the inner text of my element?</strong></p>
  
  <p>App.js:</p>
  
  <pre><code>&lt;Text accessibilityLabel="status"&gt;{this.state.status}&lt;/Text&gt;
  </code></pre>
  
  <p>appium.test.js:</p>
  
  <pre><code>test('Login success', async() =&gt; {
      expect(await driver.hasElementByAccessibilityId('username input')).toBe(true)
      expect(await driver.hasElementByAccessibilityId('password input')).toBe(true)
      expect(await driver.hasElementByAccessibilityId('submit button')).toBe(true)
      expect(await driver.hasElementByAccessibilityId('status')).toBe(true)
  
      await driver.elementByAccessibilityId('username input').sendKeys('some_username')
      await driver.elementByAccessibilityId('password input').sendKeys('some_password')
  
      await driver.elementByAccessibilityId('submit button').click()
  
      const result = await driver.elementByAccessibilityId('status').text()
  
      console.log(result) // 'status' WHY???
  
      // the test runs fine until here:
  
      expect(result).toBe('Logged in')
  })
  </code></pre>
  
  <p>All I can think of is that <code>text()</code> is not the right function to get the inner text of my element, but this is all I see in the docs or tutorials I've been following...</p>