fnlctrl / testcafe-browser-provider-webdriverio

MIT License
7 stars 4 forks source link

TestCafe with Appium/WinAppDriver #3

Open maximojoexpress opened 5 years ago

maximojoexpress commented 5 years ago

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

fnlctrl commented 5 years ago

I've only tested with Appium running on macOS + an android device. I'll test with windows soon.

maximojoexpress commented 5 years ago

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.

fnlctrl commented 5 years ago

So I've tested Appium on Windows with an Android phone running Android 9.0 Steps I took:

And the test ran successfully, results:

image

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.