Open danhi opened 6 years ago
Can you provide a simple demo application? Also you could try the "Text" pattern and see if that helps (haven't used that pattern yet but I implemented it).
I was using the Text pattern.
You can download http://www.danhinsley.com/downloads/Testharness.zip. It’s a very simple VB app that launches itself when you click on the button. You can then see that you get for the text pattern (as well as other things like name).
That seems to be a bug in the WinForms control which does not happen in the WPF control. It would probably make sense to add a RichTextBox control to FlaUI which takes care of this.
Well, let me know when you have something you want me to test. It's easy to work around, since I just add .trim to where I retrieve it.
When getting the value from a RichTextBox control that is empty, it returns a single CR. I get the element using AsTextBox, and then use the .text subitem. Maybe I should be using something else?