Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: changed "element" property, added complete information about element #808

Merged

Conversation

IlyaUA
Copy link

@IlyaUA IlyaUA commented Nov 9, 2023

Implementation of this proposal: appium/appium#19354

Copy link

linux-foundation-easycla bot commented Nov 9, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

@IlyaUA
Copy link
Author

IlyaUA commented Nov 9, 2023

@mykola-mokhnach Review please

@IlyaUA
Copy link
Author

IlyaUA commented Nov 10, 2023

@mykola-mokhnach Done 👌

@KazuCocoa
Copy link
Member

Could you sign the CLA?

@IlyaUA
Copy link
Author

IlyaUA commented Nov 10, 2023

Could you sign the CLA?

Done

@IlyaUA
Copy link
Author

IlyaUA commented Nov 10, 2023

@mykola-mokhnach @KazuCocoa Could you please tell me why some tests fail?

@@ -369,12 +369,16 @@ - (BOOL)fb_dismissKeyboardWithKeyNames:(nullable NSArray<NSString *> *)keyNames
if (nil != auditTypeValue) {
auditType = valuesToNamesMap[auditTypeValue] ?: [auditTypeValue stringValue];
}
id<FBXCElementSnapshot> snapshot = [extractIssueProperty(issue, @"element") fb_takeSnapshot];
NSDictionary *elementObject = snapshot ? [self.class dictionaryForElement:snapshot recursive:NO] : @{};

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is that really what is needed? Just to get all attributes of an element?
I though element path in the tree is necessary

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea behind my proposal is to provide all the attributes of the element for which the problem was found, so that it would be similar to the native AccessibilityAudit API.
This will be enough for writing automated tests and debugging and much more.
In case I’m missing something could you point me to example of getting element path in appium

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is ok, just wanted to confirm it is exactly what is needed. Then I assume elementAttributes would be a proper name

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I got it.
Done 👌

@mykola-mokhnach
Copy link

@mykola-mokhnach @KazuCocoa Could you please tell me why some tests fail?

several random tests may fail in CI because of its slowness. This is known

@mykola-mokhnach mykola-mokhnach changed the title Feat: changed "element" property, added complete information about element feat: changed "element" property, added complete information about element Nov 10, 2023
@mykola-mokhnach
Copy link

Please also don't forget to update the extension documentation at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/execute-methods.md after the change is published

@mykola-mokhnach mykola-mokhnach merged commit 0d7e4a6 into appium:master Nov 16, 2023
39 of 42 checks passed
github-actions bot pushed a commit that referenced this pull request Nov 16, 2023
## [5.15.0](v5.14.0...v5.15.0) (2023-11-16)

### Features

* Add element attributes to the performAccessibilityAudit output ([#808](#808)) ([0d7e4a6](0d7e4a6))
@IlyaUA
Copy link
Author

IlyaUA commented Nov 20, 2023

Please also don't forget to update the extension documentation at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/execute-methods.md after the change is published

Yes, I will update the version of the WDA dependency in appium-xcui-driver and the documentation.
How to make a new WDA release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants