Help with RegExp as part of an object's FullName
Hi,
The object I’m trying to click has a different FullName every time depends where I’v navigated from only the BOLD bit is changing.
Sys.Process("QuickDesign.ConfigurationManager").WPFObject("HwndSource: This").WPFObject("This").WPFObject("Grid", "", 1).WPFObject
("AppStateGrid").WPFObject("ScopedGrid").WPFObject("NetworkControl").WPFObject("Explorer").WPFObject("AppStateGrid").WPFObject("Border",
In this case I came from the Networking area so the parent include the networking.
Sys.Process("QuickDesign.ConfigurationManager").WPFObject("HwndSource: This").WPFObject("This").WPFObject("Grid", "", 1).WPFObject("AppStateGrid").WPFObject("ScopedGrid").WPFObject("AutomationBindingsControl").WPFObject("Explorer").WPFObject("AppStateGrid").WPFObject("Border", "", 1)
In this case I’m coming from the automation area so it include the automation
I’ve tried to put * instead of this value in the parent for example
Sys.Process("QuickDesign.ConfigurationManager").WPFObject("HwndSource: This").WPFObject("This").WPFObject("Grid", "", 1).WPFObject("AppStateGrid").WPFObject("ScopedGrid").WPFObject("*").WPFObject("Explorer").WPFObject("AppStateGrid").WPFObject("Border", "", 1)
But that didn’t work.
Any idea how to solve that? it could also be a RegExp that include the word *.Control for example because Control appears in all strings
I think that’s what causing the Ambiguous recognition of the tested object I have
Thank you,
Ofer