Text Comparison on Mobile Automation
complete
g
gpaneda@gmail.com
Being able to take a text from before execution and comparing the values after execution
Log In
M
Martin Ceska
complete
M
Martin Ceska
Hi Gerry Paneda,
Are you looking for a solution using our web UI or Suitest JavaScript API? In both environments it is already possible now.
When using JavaScript API, you can easilly store a text of an element into some variable and then later check it (see example below).
let element = await suitest.element(some identifier);
// some changes
await suitest.assert.element(some identifier).matches([
{
name: PROP.TEXT_CONTENT,
val: element.text,
type: COMP.NOT_EQUAL,
},
]).timeout(2000);
When using our webUI, you can store element with the original text into the element repository and inside the test then validate if the text has changed (screenshot with an example attached).
Kind regards,
Martin