code: def _setup_phantomjs(self, capabilities):
          
          phantomjs_driver = self.config.get('Driver', 'phantomjs_driver_path')
          self.logger.debug("Phantom driver path given in properties: %s", phantomjs_driver)
          return webdriver.PhantomJS(executable_path=phantomjs_driver, desired_capabilities=capabilities)
docs: Setup phantomjs webdriver
  
          :param capabilities: capabilities object
          :returns: a new local phantomjs driver