Cheaper to have trolley buses but not as sexy/
But not practical. Unless you have a battery backup, those things will crap out if they lose the connection or a power failure and they can only go where the wires are anyway. History has been there done that.