My problem is that when I compare the state of the element to another state (like element.state.compareTo(anotherstate)) I can see that element.state really isn't a state but a number.
Code: Select all
while (element.State.CompareTo((State)Enum.Parse(typeof(Ranorex.State),"normal", true)) != 0)
{ //do something like wait }
What I can see in my code is that when element.State is "normal" it returns 1048580 and when it's "unavailable" it returns 1048577.
I'm working with custom .net controls so that might be the problem but I just want to make sure.
Right now I'm working around the problem by converting the number into a state manually - but I'd like very much not to do this.
Thanks for your support.