Just wanted to know: does iOS UI Automation JavaScript support the substring
method? If yes, please provide a suitable example because I'm getting an error response for the same.
Use : substr()
var str="Hello world!";
var n=str.substr(2,3)
The result of n will be:
llo
It works. Tested.
P.S.Please accept anwser it if it works for you.