SetClipboardText
Description
Use this command to set the content of the system clipboard.
info
Command works only for Android 5+.
Parameters
Name | Type | Description |
---|---|---|
Text | String | Clipboard Text |
info
Replace <server> with the appropriate URL.
- Public Continuous Testing Cloud - https://cloud.seetest.io/wd/hub/.
- Dedicated Continuous Testing Cloud environment - Your own domain. For example: https://company.experitest.com/wd/hub/
- On-premises Continuous Testing Cloud environment - Your designated URL. For example: https://company.com/wd/hub
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");
**