How to measure this component
The first one has designator L1 so it most likely is a ferrite bead.

The second one is most likely a capacitor. You can't measure capacitors when they are connected to the circuit, the rest of the circuitry will affect the reading. The capacitor value might be so low that general purpose multimeter cannot measure it.