TestStack / White

DEPRECATED - no longer actively maintained
Other
1.02k stars 485 forks source link

If dialog appeards after setting PropertyGridProperty value, the program freezes #644

Open i-m-luke opened 5 years ago

i-m-luke commented 5 years ago

Hi everyone (anyone), I have an issue with setting PropertyGridProperty.Value property. If dialog occurs after setting the property, the program get stuck. I was tracking the problem inside my code and it get stuck after executing the line property.Value = valueToSet. There is no problem with setting the property if no dialog is shown. The property has multiple options (list of options) to set.

Bellow, I will briefly describe the scenario while the issue occurs:

  1. Finding a PropertyGridProperty
  2. Setting property value
  3. Immediately dialog is shown
  4. The code got stuck

After the dialog is manually closed the code execution continues. Unfortunately I'm not able to close it within the code, because I'm stuck on the line mentioned above.

Also, it seems SetValue() method doesn't work, because there is no logical implementation in it within the PropertyGridProperty (inheriting from UIItem). Are there any steps to deal with the issue? Because it seems, my hands are tied while the problem is within the TestStack.White library.

I'll be thankful for any replies.