Skip to main content

GetClipboardText

Description

Use this command to get text that is currently stored in the device clipboard.

info

This command works on Android 5+.

Usage

info

Replace <server> with the appropriate URL.

Example

GetClipBoardText

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

...
...
seetest.getClipboardText();