Skip to content

Commit

Permalink
Started work on json importation.
Browse files Browse the repository at this point in the history
Wrote function building command executor string from json info.
  • Loading branch information
OniOni committed May 11, 2012
1 parent 15bebaa commit 24547a4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions parallelWd.py
@@ -1,5 +1,6 @@
from selenium import webdriver
import unittest
import json

class Remote(object):
"""
Expand All @@ -25,6 +26,11 @@ def load_config_file(self, file):
Arguments:
- `file`: json file containing conf
"""
conf = json.load(file)


def __build_command_executor(self, conf)
return 'http://'+conf['username']+':'+conf['accessKey']+'@'+conf['host']+':'+conf['port']+'/wd/hub'

def __create_drivers(self, desired_capabilities):
"""Create webdrives from desired capabilities
Expand Down

0 comments on commit 24547a4

Please sign in to comment.