microsoft / WinAppDriver

Windows Application Driver
MIT License
3.66k stars 1.4k forks source link

X-path performance in WinAppDriver? #1436

Open Surya0413 opened 3 years ago

Surya0413 commented 3 years ago

In my WPF application I am using X-path, I noticed that when I am trying to locate the elements using X-path WinAppDriver taking time to locate the element and performing action, when I am using ".FindElementByAccessibilityId" for the same element it is taking less time. Any reason or am I doing wrong for locating element with X-path. X-path: CortanaSession.FindElement(By.XPath("//ComboBox[@AutomationId='Formats']")).Click(); (Slow to locating element). By Access Id: CortanaSession.FindElementByAccessibilityId("Formats").Click() (Fast compare to X-path).

anunay1 commented 3 years ago

This is a know issue with win app driver

Surya0413 commented 3 years ago

ok .. thanks for reply @anunay1