-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The 'value' of 'getPasteboard' is always empty #330
Comments
Did you use it on simulators? Perhaps, you can get/set the value if WDA was foreground (I haven't checked it, but we expected this works on simulators mainly) |
I haven't tried it on the simulator. You're right, when Thank you very much for your reply 🥳 |
Is this still accurate? I have tried both Activate App and Background App, clipboard still returns nothing. |
I think so. Afaik, if you enabled clipboard sync between other devices (Handoff feature), it could affect when you copy something on other devices. |
Could you please share a code sample? I don't understand why something like this doesn't work:
Switching to Settings doesn't work either. Clipboard will still be empty or undefined. |
You should bring WDA to your foreground. It looks like you brought your test app to the background, but you did not bring WDA to the foreground. Instead of @driver.activate_app 'com.example.WebDriverAgentRunner' # here should be your proper WDA bundle id
@driver.get_clipboard |
Oh, thanks! I'm using WebDriverIO, will investigate. |
Is this an Appium issue? None of these work, first line timeout, others just fail immediately: Bundle ID appears correct based on start of Appium logs
|
The productBundleIdentifier depends on how you set the bundle id. It refers to If you manually have changed the bundle id, you should set it as you did. |
This is on BrowserStack, I don't have to interact with WebDriverAgent, its set up automatically. I tried updatedWDABundle capability earlier also, setting a custom name and had same result as above. |
Got it. Then, please ask their support team. I guess they have their own rule. |
I don't understand, is it a problem with my iOS device and system?
The text was updated successfully, but these errors were encountered: