Package io.appium.java_client.ios
Interface HasIOSClipboard
- All Superinterfaces:
CanRememberExtensionPresence,ExecutesMethod,HasClipboard
- All Known Implementing Classes:
FlutterIOSDriver,IOSDriver
-
Method Summary
Modifier and TypeMethodDescriptiondefault BufferedImageGet an image from the clipboard.default URLGet an URL from the clipboard.default voidSet an image to the clipboard.default voidsetClipboardUrl(URL url) Set an URL to the clipboard.Methods inherited from interface io.appium.java_client.CanRememberExtensionPresence
assertExtensionExists, markExtensionAbsenceMethods inherited from interface io.appium.java_client.ExecutesMethod
execute, executeMethods inherited from interface io.appium.java_client.clipboard.HasClipboard
getClipboard, getClipboardText, setClipboard, setClipboardText
-
Method Details
-
setClipboardImage
Set an image to the clipboard.- Parameters:
img- the actual image to be set.- Throws:
IOException- if the image cannot be decoded in PNG representation
-
getClipboardImage
Get an image from the clipboard.- Returns:
- the actual image instance.
- Throws:
IOException- If the returned image cannot be decoded or if the clipboard is empty.
-
setClipboardUrl
Set an URL to the clipboard.- Parameters:
url- the actual URL to set.
-
getClipboardUrl
Get an URL from the clipboard.- Returns:
- the actual URL instance.
- Throws:
MalformedURLException- if the URL in the clipboard is not valid or if the clipboard is empty.
-