Crosswalk doesn't support standard desiredCapabilities from appium-chromedriver module.
appium-chromedriver uses object with name chromeOptions but crosswalk requires xwalkOptions
So I added this object to desiredCapabilities request
docker run -d --privileged -v /dev/bus/usb:/dev/bus/usb -p 4723:4723 hamsterksu/appium-xwalk
- Install docker to Windows pc - https://www.docker.com/docker-toolbox
- Run "Kitematic (Alpha)" or "Docker Quickstart Terminal" as Administrator
- Docker tool will create virtual machine. this virtual machine will be available from VirtualBox control panel.
- Close docker tool
- Run VirtualBox as Administrator too.
- Power off "default" machine.
- Download and install virtualbox extension pack with usb 2.0 supports - https://www.virtualbox.org/wiki/Downloads
- close and run virtualbox as Administrator again.
- go to machine settings and enable usb 2.0 for it.
- add your phone to list of available usb ports.
- to get access to docker host you need to use ssh
- ip address of docker host you can find in "Docker Quickstart Terminal". usually it's 192.168.99.100
- docker host user is docker
- it uses private key instead of plain password. path to private key - %USERPROFILE%.docker\machine\machines\default\id_rsa
- We will use Putty as ssh client
- you should convert private key to putty ppk.
- use puttyget for it: load key -> save private key. you will use this file to login
- open putty and create session: use docker@ip as ip address - generally it's docker@192.168.99.100 - https://dl.dropboxusercontent.com/u/8604560/github-appium-xwalk/putty-step1.png
- go to ssh->auth section and choose .ppk key file from step 3. - https://dl.dropboxusercontent.com/u/8604560/github-appium-xwalk/putty-step2.png
- go to session and save it again.
- press open button. you will get access to docker host.
- Docker host provides access to docker command line.
- Command reference - https://docs.docker.com/engine/reference/commandline/cli/
- Glossary:
- Docker host - pc with installed docker management tool
- Docker image - image of virtual machine - snapshot of os with preinstalled software.
- Docker container - instance of virtual machine, which is created from image. ATTENTION: container doesn't save its state. so if you restart it you will get fresh instance. to save state you should use volumes.
- Docker volume - it's folder from docker host which can be attached to container.
- short list of commands:
- docker run - create docker container with specific params and start it. you will not have possibility to change start params. you have to recreate container.
- docker ps - show started containers
- docker ps -a - show all existing containers
- docker start - start container
- docker stop - stop container
- docker exec -i -t bash - connect to command line of selected container. type exit to close it.