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

Pywinauto Cannot See Elements After Accessing Combobox #1387

Open
Zacharydurst opened this issue Apr 4, 2024 · 0 comments
Open

Pywinauto Cannot See Elements After Accessing Combobox #1387

Zacharydurst opened this issue Apr 4, 2024 · 0 comments

Comments

@Zacharydurst
Copy link

Zacharydurst commented Apr 4, 2024

Expected Behavior

After choosing an item from a combobox I should be able to see all the elements that were visible before accessing the combobox.

Actual Behavior

After accessing a combobox I cannot see all the elements that were visible prior to accessing the combobox.

Steps to Reproduce the Problem

  1. run code:
app = Application(backend="uia").connect(title_re="ImagineOne", timeout=20, control_type="Window")
login = app['ImagineOne']
login.print_control_identifiers()

2.Access combobox

  1. run code again:
app = Application(backend="uia").connect(title_re="ImagineOne", timeout=20, control_type="Window")
login = app['ImagineOne']
login.print_control_identifiers()

Short Example of Code to Demonstrate the Problem

Specifications

  • Pywinauto version: 0.6.8
  • Python version and bitness: 3.11
  • Platform and OS: WIndows
  • App Being tested is using WINUI 3

Use case

The issue is I need to use a combobox to select something and then use other elements in the app to verify some information. However the other elements are no longer available after accessing the combobox. Attached are the before and after print_control_identifier examples. I have tried reinitializing the dialog. The only way I can get all the elements to show is if I close my app altogether and then reopen it.
image
image
image

after_combobox.txt
before_combobox.txt

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

1 participant