I have to test a web application developped with React.
I have to check if the text of an input corresponds to a given text. I know how to do this with verifyElementText() or getText() methods.
In the html the input is as in this example:
When I use my method the result is in error: inputText.equals(‘XXXX’)
| | |
"" false XXXX
I don’t understand why. Even WebUI.delay(X seconds) doesn’t resolve the problem.
Thanks for any purpose.
I solved my first question with getAttrbute().
I have another one with a value entered for password: this value should be hidden by default ie instead of value, bullet points are displayed. I tried different methods to get the entered value but I get the error saying that ‘’ doesn’t match with ‘•••••’. In html I can’t see the entered value for security reasons.
So where I can get the entered value?
Thanks
2019-10-17 16:31:53.676 ERROR c.k.k.core.keyword.internal.KeywordMain - Actual text ’ ’ and expected text ‘66.50’ of test object ‘Object Repository/Audit/Page_/AT_Billed_Gross’ are NOT matched. (Root cause: com.kms.katalon.core.exception.StepFailedException: Actual text ‘’ and expected text ‘66.50’ of test object ‘Object Repository/Audit/Page_/AT_Billed_Gross’ are NOT matched.