-
Notifications
You must be signed in to change notification settings - Fork 671
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
Data captured by pywinauto with delay #1366
Comments
Even if the data is in memory of the application, it must be copied to the UI table memory to be displayed. Copying also takes non-zero time and most probably it is CPU bound a little bit (memory transaction makes one CPU core waiting). I'd suggest to try calling |
All the methods to work with waits are here: https://pywinauto.readthedocs.io/en/latest/wait_long_operations.html |
I am automating a WPF application. it uses external data sources to show data as tables.
data has a hierarchy and based on data type they are shown in multiple tables
in my case, there is a data type that has a table as root and two other tables as siblings divided into tab items
when I select a row in the main table based on the data of the row there are 0-10 rows in each sibling table
I read the main table data at first using the following code and then click on each row of it and try to read sibling tables
the main table read fine
but when I try to read sibling data there is a delay between the data shown on UI and data gathered by pywinauto
I'd added sleep after each row click but it is not constant and there are some times that pywinauto captures previous data from sibling tables (if I increase sleep it would be corrected)
some points:
Expected Behavior
read correct and updated data from the UI
Actual Behavior
there are random delays between the time data shown on UI and the same data can be captured using pywinauto
Steps to Reproduce the Problem
Short Example of Code to Demonstrate the Problem
Specifications
The text was updated successfully, but these errors were encountered: