appium / appium-mac2-driver

Next-gen Appium macOS driver, backed by Apple XCTest
Apache License 2.0
116 stars 24 forks source link

Help Attribute is not getting captured in the Pagesource. #153

Closed Karthikeyan021298 closed 1 year ago

Karthikeyan021298 commented 1 year ago

When I tried to Inspect the Element using Accessibility inspector, I got the "Help" attribute of the element, but when I tried to get the Page source the "Help" Attribute was not there in the Page source.

image

XCUIElementTypeButton elementType="9" identifier="_NS:543" label="" title="" enabled="true" selected="false" x="634" y="624" width="52" height="52", this is the value I got from the Pagesource for the Element.

Regards, Karthikeyan

mykola-mokhnach commented 1 year ago

https://developer.apple.com/documentation/xctest/xcuielementattributes?language=objc

These are all attributes that xctest itself provides. If they don't contain the above text then probably there no (official) way to retrieve it using xctest