Skip to main content

SetClipboardText

Description

Use this command to set the content of the system clipboard.

info

Command works only for Android 5+.

Parameters

NameTypeDescription
TextStringClipboard Text
info

Replace <server> with the appropriate URL.

Example

SetClipboardText

**

DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "<deviceid>");

...
...
//Checked if MakePaymentButton is above Mortgage Request.
seetest.setClipboardText("text");

**