Set text

Post your questions and help other users.

Moderator: Martin

Post Reply
Akt
Posts: 133
Joined: 25 May 2014 08:57

Set text

Post by Akt » 14 Feb 2017 16:59

Hi,
What is "pattern" in settext2 function of control UI ??

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Set text

Post by Martin » 14 Feb 2017 21:08

Hi,

"pattern" is the pattern that is used to find the text field on the screen. For buttons it's the label of the button for text fields it's the text contained in the field which might even not be known at all when the text field is empty. You might have to use the function setText2(x, y, text) to find the text field by x/y-coordinate or the function setText2ById when supported on your device (Android 5+).

Regards,
Martin

Akt
Posts: 133
Joined: 25 May 2014 08:57

Re: Set text

Post by Akt » 15 Feb 2017 01:50

Thanks Martin

Post Reply