I saw a post on this same problem but the solution did not work for me. All I want to do is open a combo box and select an item. Seems simple enough, and the following code works fine if the item I want to select is visible when the combo box is opened:
Ranorex.ListItem listItem1 = ".//listitem[@accessiblename='" + Env + "']";
listItem1.Click("center");
But if the item I want to select is not visible (you have to scroll down to see it) then Ranorex will timeout. I tried the solution:
Ranorex.ComboBox Environmentcb = repo.FormSystem_Manager___UNCLASS.EvironmentCombo;
Environmentcb.Click("center");
Environmentcb.SelectedItemText=Env;
But when I execute this code Ranorex will just crash:
Ranorex.SetAttributeFailedException: Setting attribute 'selecteditemtext' failed on element '{ComboBox:NS}'. ---> System.NotSupportedException: The operation is not supported.
at Ranorex.Plugin.MsaaFlavorElement.SetAttributeValue(Element element, String name, Object value)