You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
data is on the application's memory and there is no actual delay between row click and data presented on table
there is no relation between the size of the data and the delay
if I increase sleeps between row click and data read it would solve the problem but it will not pass my tests
same behavior on multiple machines with various hardware configurations (aka intel 12700K)
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
open the page with multiple tables, data of sibling tables are related to selected row on main table
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 app.wait_cpu_usage_lower(...) and to tune its params to achieve balance between reliability and speed.
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: