Measurements of cosmic-ray electrons and positrons by the WiZard/CAPRICE collaboration