def _add_chrome_arguments(self, options):
        """Add Chrome arguments from properties file

        :param options: chrome options object
        """
        try:
            for pref, pref_value in dict(self.config.items('ChromeArguments')).items():
                pref_value = '={}'.format(pref_value) if pref_value else ''
                self.logger.debug("Added chrome argument: %s%s", pref, pref_value)
                options.add_argument('{}{}'.format(pref, self._convert_property_type(pref_value)))
        except NoSectionError:
            pass
def _add_chrome_arguments ( self , options ) : try : for pref , pref_value in dict ( self . config . items ( 'ChromeArguments' ) ) . items ( ) : pref_value = '={}' . format ( pref_value ) if pref_value else '' self . logger . debug ( "Added chrome argument: %s%s" , pref , pref_value ) options . add_argument ( '{}{}' . format ( pref , self . _convert_property_type ( pref_value ) ) ) except NoSectionError : pass
Add Chrome arguments from properties file

        :param options: chrome options object