To extract WPA handshakes from the CAP files it is possible to use
Apply this filter and save displayed only packets.
eapol || wlan.fc.type_subtype == 0x04 || wlan.fc.type_subtype == 0x08
For Wireshark then do
File -> Export Specified Packets and select to export
For Tshark the …