Well you aren't supposed to, you mean to say. It does sound like a good idea for someone who has just been risking it, to get self-driving as a backup.
Generally if the state finds out you have epilepsy, you'll need to be seizure free without medication for some period of months or more (depending which state), and perhaps need a doctor to sign off, before you can get a driver's license.