MeltwaterArchive/storyplayer

[Feature request] Remotely use an iOS / Android browser

asgrim opened this issue · 4 comments

I don't even know if this kind of wizardry is possible, but in much the same way you can control a desktop Chrome browser, I'd love for Storyplayer to be able to connect to a real iOS device (e.g. iPhone) or Android device, and remotely control the browser, feeding back to Storyplayer.

It would allow me to write stories like this:

  1. As a PC user, I want to submit the form so that I can see search results
  2. As an iPhone user, I want to submit the form so that I can see search results

I can presently test the first, but not the second story.

IPhone I have no idea.
Android, this can be achieved through the remote debugging support.
It does require the android device to have chrome installed but it could work by controlling the android chrome via the desktop chrome.
https://developers.google.com/chrome-developer-tools/docs/remote-debugging

How much work it would be is a mystery.

For the moment, my recommendation is to try out our new SauceLabs support in the develop branch; they've done the hard work in providing WebDriver-controlled browsers for iOS and Android.

There is WebDriver support for iOS built into Selenium2. I'm very happy to add support to Storyplayer to connect to an arbitrary remote WebDriver; it isn't a lot of work to add. Should be possible to get this done in the next few days.

Documentation is done, and available here: http://datasift.github.io/storyplayer/devices/remotewebdriver.html. Only works with the 'develop' branch, at least until we release v1.4 :)

This is now available via Packagist in v1.4.0. It's experimental, but I hope it does what you need.