An exemplary fixture includes a holder, a moving transfer unit, a clamping arm, and a driving unit. The moving transfer unit is located on the holder, and includes a pushing block. The pushing block has a urging element on an upper surface thereof. The clamping arm includes a pivot axis and a slanted surface. The urging element of the pushing block interacts with the slanted surface to rotate the clamping arm along the pivot axis. The driving unit is connected to the pushing block for moving the pushing block of the moving transfer unit.