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

Add UIACondition and UIATreeWalker as wrappers for COM objects #1344

Open
wants to merge 3 commits into
base: atspi
Choose a base branch
from

Conversation

junkmd
Copy link
Contributor

@junkmd junkmd commented Sep 28, 2023

(iter_)children/(iter_)descendants methods of UIAElementInfo handle IUIAutomationConditon and IUIAutomationTreeWalker directly.
This leads to bloated codebases within these methods.

I think that providing appropriate wrappers for these can simplify the implementation of UIAElementInfo methods, so I have added several classes for this purpose.

I plan to replace the implementation of (iter_)children/(iter_)descendants with the codebase using the classes added in this PR once #1337 and #1334 are resolved.

@codecov
Copy link

codecov bot commented Sep 28, 2023

Codecov Report

Merging #1344 (f849ce3) into atspi (bf7f789) will decrease coverage by 6.25%.
The diff coverage is 96.62%.

Additional details and impacted files
@@            Coverage Diff             @@
##            atspi    #1344      +/-   ##
==========================================
- Coverage   94.15%   87.90%   -6.25%     
==========================================
  Files          60       60              
  Lines       23036    23177     +141     
==========================================
- Hits        21689    20374    -1315     
- Misses       1347     2803    +1456     

@junkmd junkmd force-pushed the add_uia_condtion_and_tree_walker branch from 8d0d48c to 644ed4a Compare September 29, 2023 01:58
@junkmd junkmd marked this pull request as ready for review September 29, 2023 04:32
@junkmd junkmd changed the title Add UIACondition and UIATreeWalker as wrappers Add UIACondition and UIATreeWalker as wrappers for COM objects Sep 29, 2023
as wrapper of `IUIAutomationTreeWalker`
as wrapper of `IUIAutomationTreeWalker`
from using `IUIAutomation.ControlViewWalker` to using `UIATreeWalker`
@junkmd junkmd force-pushed the add_uia_condtion_and_tree_walker branch from 644ed4a to f849ce3 Compare October 2, 2023 04:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant