TestStack / White

DEPRECATED - no longer actively maintained
Other
1.02k stars 485 forks source link

Taking 2 minutes to identify a single element #638

Open singhbrijyot91 opened 5 years ago

singhbrijyot91 commented 5 years ago

I am working on automating wpf .net application and while trying it with white, it takes around 2-3 minutes to identify a single UI element which baffles me. While locating elements through UI spy it takes no time at all. Any suggestions on what to do here ?

singhbrijyot91 commented 5 years ago

There is a really strange thing that I have observed. While looking out for a Tab element which is the topmost element of GUI, it didn't take much time. Tab FSimTabs = window.Get("Tab1");

However, while checking other elements it took 2-3 minutes per element. TextBox Schema = window.Get("TextboxName1");

Could anyone point out what exactly is the issue here or is it an issue with the tool, because I checked with TestComplete and it took less then 10 seconds to identify that element.

VladislavKostyukevich commented 5 years ago

@singhbrijyot91 Seems like you are trying to get element deep inside the objects tree. to make it faster you need to find some parent element and then look for the child in this parent instead of the window.