Hello, I am trying to select element by text, on Android, iOS I can use Appium inspector to check what attributes return text. Like for example Android has attribute text, so then I can write await $(`[text="${selector}"]`);. On web what works for me is await $(`//*[text()='${selector}']`);. What attribute returns text in webos? Appium inspector doesn't give much information therefore tried using what I use on Android, iOS, Web, but none seem to work
The inspector does not work with this driver. Just use a web browser inspector instead. You're just dealing with html here. So web queries should work just fine.
Hello, I am trying to select element by text, on Android, iOS I can use Appium inspector to check what attributes return text. Like for example Android has attribute text, so then I can write
await $(`[text="${selector}"]`);
. On web what works for me isawait $(`//*[text()='${selector}']`);
. What attribute returns text in webos? Appium inspector doesn't give much information therefore tried using what I use on Android, iOS, Web, but none seem to work