Electroencephalogram (EEG). This is the most common test used to diagnose epilepsy. In this test, electrodes are attached to your scalp with a paste-like substance or cap. The electrodes record the electrical activity of your brain.
https://www.mayoclinic.org/diseases-conditions/epilepsy/diagnosis-treatment/drc-20350098

