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

Get FullDescription property of inspect.exe using pywinauto #1363

Open
sirish-gambhira opened this issue Dec 17, 2023 · 3 comments
Open

Get FullDescription property of inspect.exe using pywinauto #1363

sirish-gambhira opened this issue Dec 17, 2023 · 3 comments

Comments

@sirish-gambhira
Copy link

Hello all.

I am trying to extract FullDescription property as shown by inspect.exe using pywinauto library.

Expected Behavior

The attached image is shown when mouse is hovered over a particular UI element.
image

Actual Behavior

The legacy properties of the corresponding UI element using pywinauto - shows Description as '':

{'ChildId': 0, 'DefaultAction': 'Press', 'Description': '', 'Help': '', 'KeyboardShortcut': '', 'Name': 'Raise', 'Role': 43, 'State': 1048580, 'Value': ''}

Steps to Reproduce the Problem

  1. I connected to a .exe application running in my windows machine using Application(backend="uia").connect()
  2. I identified the required UI element by calling print_control_identifiers() method
  3. Printed the legacy properties of the button

Short Example of Code to Demonstrate the Problem

Output of the print_control_identifiers()
image

  1. app = Application(backend='uia').connect("application.exe")
  2. dialog = app.top_window()
  3. button = dialog.RaiseButton
  4. print(button.legacy_properties())

Specifications

  • Pywinauto version: 0.6.8
  • Python version and bitness: 3.11.4
  • Platform and OS: Windows

Tagging @vasily-v-ryabov for better reach. Thank you.

@sirish-gambhira
Copy link
Author

Solved: Ref - https://stackoverflow.com/a/58604505/22806499

@vasily-v-ryabov
Copy link
Contributor

It was added into atspi branch a while ago. So next major release will have all such properties.

@sirish-gambhira
Copy link
Author

Hi @vasily-v-ryabov.

I installed the package from atspi branch and am still seeing the Description field as an empty string.

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

No branches or pull requests

2 participants