On any union tv show or movie in the United States, all driving sequences are either in a studio shot with a green screen or a virtual stage, or they are shot with a "process trailer" where somebody else pulls the car.
It is very much illegal to have an actor "act" while driving, though in the low budget indie world you might find productions or cast willing to risk it in some way.