parameters: (self, executable_path, port=0, service_args=None)
docstring: Creates a new instance of the Service
  
          :Args:
           - executable_path : Path to PhantomJS binary
           - port : Port the service is running on
           - service_args : A List of other command line options to pass to PhantomJS
docstring_summary: Creates a new instance of the Service
docstring_tokens: Creates a new instance of the Service
function: def __init__(self, executable_path, port=0, service_args=None):
          """
          Creates a new instance of the Service
  
          :Args:
           - executable_path : Path to PhantomJS binary
           - port : Port the service is running on
           - service_args : A List of other command line options to pass to PhantomJS
          """
  
          self.port = port
          self.path = executable_path
          self.service_args= service_args
          if self.port == 0:
              self.port = utils.free_port()
          if self.service_args is None:
              self.service_args = []
          self.service_args.insert(0, self.path)
          self.service_args.append("--webdriver=%d" % self.port)
          self._log = open("ghostdriver.log", 'w')
function_tokens: def __init__ ( self , executable_path , port = 0 , service_args = None ) : self . port = port self . path = executable_path self . service_args = service_args if self . port == 0 : self . port = utils . free_port ( ) if self . service_args is None : self . service_args = [ ] self . service_args . insert ( 0 , self . path ) self . service_args . append ( "--webdriver=%d" % self . port ) self . _log = open ( "ghostdriver.log" , 'w' )