mirror of
https://github.com/appium/appium.git
synced 2026-01-21 01:29:52 -06:00
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:
@@ -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:
|
||||
|
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user