Skip to content
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

Is there has any way to run js thread in real device app context? #2448

Open
wabicai opened this issue Aug 7, 2024 · 1 comment
Open

Is there has any way to run js thread in real device app context? #2448

wabicai opened this issue Aug 7, 2024 · 1 comment

Comments

@wabicai
Copy link

wabicai commented Aug 7, 2024

I want to get cllipboard from iOS real device. But in https://developer.apple.com/forums/thread/706761 show that i don't have permission to get clipboard when appium is running background.

So i try to provide a method in my app, for getting clipboard context. Just like $backgroundApi.serviceE2E.getClipboard();

I try this in appium, but it does's work. Showing error log with "Method is not implemented"

browser.execute(async done => {
      const data = $backgroundApi.serviceE2E.getClipboard();
      done(data);
    });
@wabicai
Copy link
Author

wabicai commented Aug 9, 2024

https://appium.github.io/appium-xcuitest-driver/latest/guides/clipboard/
In the official documentation, it shows that I need to switch the active application. But unfortunately, I can't. Because it will refresh my app. That's not what I want to see

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant