A UV-Vis approach is reported for activity assays and inhibition of β-lactamases in complex biological systems of living bacteria.