It will come eventually. I don't doubt that for a second.
In terms of my longevity in my current role, I'm reassured by the fact that last train I drove today was built in the early 90s and couldn't even tell me what the lights on the rear cab were doing, let alone employ any form of "AI". That unit will be running around for the next 15-20 years. Ex BR units of similar and more recent vintages are likely to be operating until the 2040s, I believe.
We already know what the next 20-30 years of progress on the rail network in terms of technology will be... It's all clearly laid out in NR's upgrade plans. Mostly ripping out aincient signalling systems, including substantial swathes still signalled under absolute block, and installing ERTMS, although even this seems to have had quite a few setbacks in the recent past.
The technology for "driverless" trains in various forms has been around for decades. The fact is the cost saving of eliminating a driver earning £50-60k per year, who can carry 1000 or more passengers on each train he drives, is dwarfed by getting the current Victorian infrastructure up to anything approaching the standard needed to do it. I'd be far more worried about automation if I drove taxis, lorries or buses, that is for sure.
As much as many people on this forum would dearly love to see the back of all rail staff, I suspect most of the naysayers will be in their cold, cold graves, long before the driver role is eliminated!