This is an experiment to implement a Selenium Remote WebDriver in Python, to enable a remote client in Selenium to drive native Desktop apps (say the Calculator).
Under MacOS we use the atomac library.
- git clone ; cd webdriver-python
- virtualenv env
- source ./env/bin/activate
- xcode-select --install
- pip install -U pyobjc-core
- pip install -U pyobjc
- Install PyWin32: https://sourceforge.net/projects/pywin32/files/pywin32/Build%20219/
Install the remaining requirements:
- pip install -r requirements.txt
- python rest_server.py
- http://localhost:4444/ping
You should be able to see something like this: {"time": "2015-05-07T12:21:30.208824"} Now you can use this server as a Remote Web Driver for your apps.
Build first:
./gradlew installDist
then run a FitNesse server (with the webdriver already running, per steps above):
./build/install/webdriver-python/bin/webdriver-python -p 7070
then run a test from FitNesse: http://localhost:7070/WebDriver
You should see test results like this:
Install first:
pip install robotframework
pip install robotframework-selenium2library
then run (with the webdriver already running, per steps above):
robot Robot/multiply.robot
You should see test results like this:
Special thanks to Softplan for sponsoring this project/experiment. In particular, the people below:
- Anderson Soffa for the support.
- André Albino Pereira for the FitNesse Selenium slim fixture