headspinio / appium-lg-webos-driver

An Appium 2.x driver for LG WebOS apps
Apache License 2.0
9 stars 5 forks source link

What attribute return text of the element #30

Closed pauliusguzas closed 1 year ago

pauliusguzas commented 1 year ago

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 Screenshot 2023-09-20 at 10 45 22

pauliusguzas commented 1 year ago

cc @jlipps

jlipps commented 1 year ago

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.