I am doing automation in MTM.
UI:
As Low As: $12,983.30 $108.19 120 5.43%
- I need to validate that number 12,983.30 starts with $
- I need to validate that number 5.43 ends with %
Code: for 1st test
So I was able to validate that element $12,983.30 exist and has $:
"xpath" "//*[+id='-student-loan-finder-form']/div/div[17]/div[2]/div[2]/div[2][text()[contains(., '$')]]" "Total Cost has $" "true"
But I wasn't successful to validate that the number starts with $:
"xpath" "//*[+id='-student-loan-finder-form']/div/div[17]/div[2]/div[2]/div[2][text()[starts-with(., '$')]]" "Total Cost starts with $" "true"
What did I do wrong?