I need to grab data from a multiline web-component. On the paper it contains 2 or 3 head items and can expand into a tree. I select the data and for long it seemed to work. Suddenly it doesn’t. I iterate each item to determine the node to expand. Suddenly it consistently selects the wrong node. It may be because of an update but I don’t think so.
Data I get is in this form: “\n\n\nItem1 Item2 \nItem3 \nItem4 Item5 Item6 Item7 \n”
I expected to see Item1 to Item3. The rest has snug in from somewhere. Furthermore, the first two items aren’t separated by an “\n”, so I do this in a for-each activity:
text.Replace("\n", null).Trim().Split(" "))
… and get the error “Cannot convert from string to char”. Can’t see where the “char” thing turned up. It’s all strings to me. Can anyone please help me?
I also saw that the data returned from GetVisibleText was a GenericValue. Changed that to a string to be able to use the string manipulation functions.
Studio Pro 2020.10.4-beta.1 - 1/26/2021
Community License
Microsoft Windows 10 Enterprise 64-bit
.NET Framework Version 4.8 or later