Can I compare InnerText property under Text Property
Can anyone tell me, if I can, how to compare the InnerText verbiage under the Property Check. I am trying to compare text and have found when I originally tried a Text Check I could not get an exact match on every screen it was done on, even though the verbiage is correct. It looks like it has to do with the it may be formatted from screen to screen. I thought maybe a property text option might be better if I could grab the InnerText field. If there is a better option though I am all ears. Thanks in advance
Re: Can I compare InnerText property under Text Property
The property check will not work because you cannot pull data out at runtime like you can a content check.
I am guessing this is HTML since InnerText is an HTML property. If not, please let us know what kind of app you are working with.
Have you tried returning the text using InnerText on the TPOSI object and then just using string comparison? If the TPOSI object does not have the innerText property try .Object.InnerText as the MSHTML(the actual control) object may use it.