Insert or paste text rather than send_keys

Is it possible to insert/paste a block of text instead of typing each letter on android with send_keys? I have a 10k limit text field I’d rather not type each letter. Thanks.

You can automate paste by using long press and clicking the paste button. The problem is inserting the text into the clipboard. I don’t think there’s a general solution to this on android via uiautomator.

Cool. Thank you for the suggestion. Yeah, couldn’t find a solution to get the text into the clipboard. :frowning:

I would also suggest using setValue because it doesn’t type out each key either. The difference is you wouldn’t be using the device’s clipboard.

setValue is only for iOS. It’s not supported on Android.

How about setText('foo')?