I have a desktop app with only one main window implemented in WPF . it is an area in main window( included search textbox that i am trying to find element for automation). this element comes from another view model binded to the main view model. i am using winapp driver framework, and code in C#
please note in binded xmal file i can see AutoamtionID but inspect tools ( inspect.exe, UI recorder, Accessibility tool) cannot find element at all. what should i do? thanks
below snippet showing how addressed in main window xaml file:
`<TabItem x:Uid="TabItem_1" Header="MyTab"
AutomationProperties.HelpText="Tab for accessing workflow"
AutomationProperties.AutomationId="tab1">
</TabItem>`
from UI Recorder: Xpath
"/Pane[@ClassName=\"#32769\"][@Name=\"Desktop 1\"]/Window[@Name=\"Main Window\"][starts-with(@AutomationId,\"wpftheme:ThemeWindow\")]/Tab[starts-with(@AutomationId,\"TabControl\")]"
Note: no matter on what element i clicked i got the above xpath
I have a desktop app with only one main window implemented in WPF . it is an area in main window( included search textbox that i am trying to find element for automation). this element comes from another view model binded to the main view model. i am using winapp driver framework, and code in C# please note in binded xmal file i can see AutoamtionID but inspect tools ( inspect.exe, UI recorder, Accessibility tool) cannot find element at all. what should i do? thanks below snippet showing how addressed in main window xaml file: `<TabItem x:Uid="TabItem_1" Header="MyTab" AutomationProperties.HelpText="Tab for accessing workflow" AutomationProperties.AutomationId="tab1">
from UI Recorder: Xpath "/Pane[@ClassName=\"#32769\"][@Name=\"Desktop 1\"]/Window[@Name=\"Main Window\"][starts-with(@AutomationId,\"wpftheme:ThemeWindow\")]/Tab[starts-with(@AutomationId,\"TabControl\")]" Note: no matter on what element i clicked i got the above xpath