String Comparisons

I am working on a process which takes the string from Excel and searches for that string in web application.
In Excel there is First Name but in application it is only Name. When I use Element Exist it always returns false because First Name and Name are not same. I am looping through the data table and in selector for aaname=variable
Do we have any function which helps to compare these two strings and return true?



You can use regex in selector

Have a look here

1 Like


You can use get attribute on ineertext and then use contains function


Can you give an example? Because it’s not only one string we have similar strings which needs to be validsted


If you have a reliable selector for the elment you need without innertext in the selector …then use that with get attribute activity

And select innertext and store output in str

Str.Contains(“your string”) or the other way round