I’ve come across an issue where
WebUI.getText is not able to trim the trailing space in actual text.
The actual text rendered in webpage HTML has
at the end. This is causing the trailing space. I thought
WebUI.getText will take care of it but it didn’t work.
Actual Text in webpage HTML:
sample text 1
Actual Text grabbed by
WebUI.getText : "
sample text 1 "
Expected Text in Test Case: “
sample text 1”
WebUI.getText must remove all leading and trailing whitespace, including HTML entities like