[Ranorex.ActionFailedException] = {"Action 'getpropertyvalue' failed on element '{Unknown:ProgramButton0}'."} InnerException = {"The control does no longer exist."}if(control.Valid) //returns true
object value = control.GetPropertyValue("SomeProperty"); //throws exceptionMarianne Jacobsen wrote:The exception is thrown after awhile - I'm uncertain whether the control actually does cease to exist.
Marianne Jacobsen wrote:The control in question is a custom one (but it inherits from UserControl) could this be the reason why it's not responding to the messages that Ranorex send?
Marianne Jacobsen wrote:I'll give a little background information the things I'm trying to achieve. Note that until recently our code was running off Ranorex 1.5.1 in which the scenario worked.
Marianne Jacobsen wrote:Usually the exception is throw the first time I ask for customText after it has changed from "blabla" to "albalb". So all the time when it has the text is unchanged from when I queried it from Ranorex I have no problems. This might be where the control deleted and created again.
Users browsing this forum: No registered users and 0 guests