Hi there,
In the program I have to test I want to Expand (or Collapse) the container, for example "Zentraler Eingriff" with Ranorex.
I've tried to get to it in the program code
Ranorex.Container tabButtonTree = "/adfgdasfg" (the Ranorex-Path)
//Expand the chosen Container
string strDefaultAction = tabButtonTree.Element.GetAttributeValue("AccessibleDefaultAction").ToString();
tabButtonTree.Element.InvokeAction("strDefaultAction");
but, I don't know why, the access to the AccessibleDefaultAction (which would be "Expand" if the container is closed and in the other way if it is opened) is denied.
So I built a workaround with an easy Click()-Event instead of the code I told before, but it isn't really satisfying.
Maybe you know another possibility to solve this problem? Or is this the only way to Expand/Collapse a Container?
Best Regards