This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This a method to get text from a native iOS/Android app component. | |
* It can be used when you are using webdriver.io | |
* | |
* In the app I need to automate I found out that: | |
* - iOS will have the complete text (of all the childeren) in the parent component. | |
* - on Android a component can have mutiple childrens, that's why you get an array of text back | |
* | |
* Feel free to use it for all kinds of purposes, a star is much appreciated ;-) | |
* |