I am currently trying to determine if I am receiving the expected response from a text message. In order to do this, I need to access the text view of the incoming message. The challenge I am facing is how to distinguish between the received text and the sent text.
All attribute values match except for the text value. How can I make Appium recognize which text to check for? I was thinking of something that involves accessing an element within another element. The code I assume would look like this:
await driver.waitForElementById('com.android.mms:id/msg_list_item_recv', 30000, function (err, data) {})
.elementById('com.android.mms:id/text_view', function (err, data){})
.textPresent('key text value', function (err, data) {});
Any assistance on this matter would be highly appreciated.