Extreme slow in finding elements - WPF
Posted: Wed Jun 19, 2019 2:17 pm
Hi,
I've been automating a WPF application and some buttons take extremely long to find, to manage timeouts we decided to mostly use FindSingle because this does not time out that fast.
Most elements get found in an acceptable time span (+/- 1 minute), however a few buttons, with a large path sometimes takes 10 to 20 minutes, this is crazy ...
Example path: "/form[@title~'^Primary\\ Subject\\ Sample:\\ ']//table[@automationid='LinkedSubjectTestGrid']/container[@automationid='PART_Header']/container[@automationid='PART_CustomButtonsArea']/button[1]"
Could someone give me some tips how to make this faster?
I've been automating a WPF application and some buttons take extremely long to find, to manage timeouts we decided to mostly use FindSingle because this does not time out that fast.
Most elements get found in an acceptable time span (+/- 1 minute), however a few buttons, with a large path sometimes takes 10 to 20 minutes, this is crazy ...
Example path: "/form[@title~'^Primary\\ Subject\\ Sample:\\ ']//table[@automationid='LinkedSubjectTestGrid']/container[@automationid='PART_Header']/container[@automationid='PART_CustomButtonsArea']/button[1]"
Could someone give me some tips how to make this faster?