Ask a Question

Mobile clipboard

TMbet
Occasional Contributor

Mobile clipboard

Hello, I have one question related to the mobile clipboard.

Is this possible to assign some text from TestComplete to iOS/Android clipboard?  I can do this easily on windows pc with:

Sys.Clipboard = "My text"

 but looks like Mobile.Clipboard = "My Text" is not supported.

 

So my question is whether there is any way how I can assign text from TC to the clipboard in mobile devices? 

 

*I'm sorry for duplicating topics. My email was not verified and I accidentally created same topics.*

 

Thanks

1 REPLY 1
AlexKaras
Community Hero

Hi,

 

For Android, this help topic might help: https://support.smartbear.com/testcomplete/docs/app-objects/specific-tasks/android/edit-text/copying...

For iOS, it looks like it depends on the type of the tested application... In case of Web, this might appear to be relevant: https://stackoverflow.com/questions/34045777/copy-to-clipboard-using-javascript-in-ios

(https://stackoverflow.com/questions/26376863/read-string-from-clipboard)

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
cancel
Showing results for 
Search instead for 
Did you mean: