KazuCocoa / appium_dart

Appium client in Dart based on webdriver.dart
https://pub.dev/packages/appium_driver
Apache License 2.0
46 stars 14 forks source link

How to get an element attribute value ? #43

Closed mbilbiesi closed 2 years ago

mbilbiesi commented 2 years ago

Hello, Thanks for the effort you've put into dart client; I start doing some experiment here, and I came into situation to get an element attribute value.

I have an element which has "content-desc" attribute with some text value, I tried to find a similar case from the examples you have in this project, but I could not find any case, Can you please share how to deal with this!

Thanks in advance

KazuCocoa commented 2 years ago

What about something like e.attributes['content-desc'];? https://pub.dev/documentation/appium_driver/latest/appium_driver.io/AppiumWebElement-class.html

mbilbiesi commented 2 years ago

Thanks KazuCocoa, Works !