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
fix is_checked
in uia_controls
#1323
base: atspi
Are you sure you want to change the base?
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## atspi #1323 +/- ##
==========================================
- Coverage 94.15% 87.83% -6.32%
==========================================
Files 60 60
Lines 23036 23034 -2
==========================================
- Hits 21689 20232 -1457
- Misses 1347 2802 +1455 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! May I ask for adding such positive test case?
Hello! You are welcome! Given my current knowledge, creating test cases to ensure the behavior of
I believe there is a need to create a new test GUI App that includes |
To be honest, I didn't encounter this bug while working with the GUI. I found this bug while investigating how |
On the other hand, in pywinauto/pywinauto/controls/uia_controls.py Lines 159 to 173 in bf7f789
pywinauto/pywinauto/unittests/test_uiawrapper.py Lines 740 to 755 in bf7f789
|
I thought preparing an actual GUI would incur significant testing costs. |
I noticed that the
IUIAutomationTogglePattern
assigned toiface_toggle
does not have an attribute namedToggleState_On
.https://learn.microsoft.com/en-us/windows/win32/api/uiautomationclient/nn-uiautomationclient-iuiautomationtogglepattern#methods
uia_controls.FooWrapper.is_checked
have only been tested for cases whereNoPatternInterfaceError
raises, and there is no test that actually verifies if it is "toggled".However, I believe it's not ideal to leave a situation where
AttributeError
is consistently occurring unaddressed, so I made the necessary corrections.