trial and error

  1. The method of discovering something desirable by trying many different things until one works; as, the traditional method of finding new drugs is by trial and error.