Code: Select all
Ranorex.SelectTag selectTag; //I initialize this to a valid SelectTag
OptionTag optionTag; //I initialize this to a valid OptionTag from selectTag.Options
optionTag.InnerText; //returns string.Empty if InnerText start with white space.
<option value = "6">
Blah
</option>
The actual InnerText before Blah is:
OD 0A 09 09 09 09 09 20 20 20 20 20 20 20 20 (CR LF tab tab tab tab tab space...)
But optionTag.InnerText returns nothing. I would hope it would return a string with the white space removed (so just "Blah") or the actual entire string (white space + "Blah") rather than nothing.