def headless(self, value):
        """
        Sets the headless argument

        :Args:
          value: boolean value indicating to set the headless option
        """
        args = {'--headless'}
        if value is True:
            self._arguments.extend(args)
        else:
            self._arguments = list(set(self._arguments) - args)