0

Is it possible to retrieve the text or the value of a react-native component (e.g text-input)?

await expect(element(by.id('componentId'))).<method>
matt
  • 607
  • 7
  • 20
  • Apparently not, this open issue is welcome PRs to add it - https://github.com/wix/detox/issues/445 – Dan Jan 08 '19 at 15:56
  • 1
    I used `await expect(element(by.id('componentId'))).toHaveText(text);`. I know this is not helpful, but at least some validations are available. – vk.4884 Jan 17 '19 at 14:52
  • @vk.4884 this can be used to check the same text, I'd like to check if text in component is empty or not – matt Jan 18 '19 at 11:39

0 Answers0