Hello,
I was trying to wrtite a custom code in C# to identify the notification icons and perform certain actions on the same.
we have the following method defined
public static AutomationElement Find(this AutomationElement root, string name)
{
return root.FindFirst(
TreeScope.Descendants,
new PropertyCondition(AutomationElement.NameProperty, name));
}
var myFind = AutomationElement.RootElement.Find("MyString");
and we have a call to this method as below:
var myFind = AutomationElement.RootElement.Find("MyString");
This code is working perfectly fine in Visual studio.
But Blue Prism throws following error
'System.Windows.Automation.AutomationElement' does not contain a definition for 'Find' and no extension method 'Find' accepting a first argument of type 'System.Windows.Automation.AutomationElement' could be found.
I have imported all the necessary dlls. But the issue still persists.
Appreciate any help on the above.
Regards,
Hemanth