Open maximojoexpress opened 5 years ago
I've only tested with Appium running on macOS + an android device. I'll test with windows soon.
Thanks for the reply. How would I use it with Appium on Windows to call WinAppDriver functions? I can try as well. It's just not clear to me how to use your plugin.
So I've tested Appium on Windows with an Android phone running Android 9.0 Steps I took:
npm i -g appium
adb devices
and allow Windows for adb debugging on the phone, and get device name of the phone, in my case it's just called "device"appium
to start appium serverset REMOTE_HOST=localhost && set REMOTE_PORT=4723 && npx testcafe webdriverio:chrome:android:device ./test.js --hostname 172.xx.xx.xx
I assume you're using cmd, if you're using git-bash remove those 'set' in the command I'm also specifying --hostname or testcafe would use 10.0.75.1 (docker NAT, which can't be accessed by the phone) as I'm also running docker on my windows
And the test ran successfully, results:
test.js contents:
fixture`test`;
test('Test Appium', async t => {
await t.navigateTo('https://google.com');
let title = await t.eval(() => document.title);
console.log(`Page title: ${title}`);
});
I haven't heard about or used WinAppDriver before, if it has Selenium/Appium compatible API I think you can use this plugin with it without problems. Or if it's supposed to be called by Appium, you'll have to consult Appium docs about this. This plugin only handles connection to Appium servers.
I was wondering how your provider plugin might help with actuating automation on the Windows desktop through Appium/WinAppDriver? I have question on StackOverflow and your provider plugin was indicated as a possible solution but I'm not sure how it would work.
https://stackoverflow.com/a/56108938/4612820