docs: move note about foreground to clipboard (#14569)

* docs: move note about foreground to clipboard

* Update description in pasteboard

* update
This commit is contained in:
Kazuaki Matsuo
2020-07-18 21:49:40 +09:00
committed by GitHub
parent 3676851345
commit dc267fdcf1
2 changed files with 5 additions and 2 deletions

View File

@@ -5,6 +5,10 @@ description:
>
Get the content of the system clipboard
(For iOS real devices)
Apple security preferences require the WebDriverAgentRunner application to be in [foreground](https://github.com/appium/WebDriverAgent/issues/330) in order to be able to receive the system clipboard content. Otherwise an empty string is always returned. Consider using [Activate App](/docs/en/commands/device/app/activate-app.md) and [Background App](/docs/en/commands/device/app/background-app.md) to change the foreground application.
example_usage:
java:
|

View File

@@ -3,8 +3,7 @@
There is a possibility in Appium to set the content of the iOS Simulator pasteboard
and read the content from there if needed. Each Simulator maintains its own pasteboard.
This feature is only available since Xcode SDK 8.1.
It might work when WebDriverAgentRunner is in [foreground on real devices](https://github.com/appium/WebDriverAgent/issues/330).
On real devices this functionaliry is available with several security limitations. Please check [Get Clipboard](/docs/en/commands/device/clipboard/get-clipboard.md)/[Set Clipboard](/docs/en/commands/device/clipboard/set-clipboard.md) for more details.
### mobile: setPasteboard