Writing method for find similar by director to pass cucumber steps