Ashwin bowls a tidy over giving away just two singles as South Africa reach 302/5 in 80 overs, with Elgar on 160 and Jansen on 27.
India don't take the second new ball as Thakur continues with the old ball.
The first ball bounces and moves away to beat Elgar, who taps the next to square leg for a single.
That single takes Elgar's score to 161 -- his highest score in Test cricket.
He is getting some good away movement as Jansen gets the edge this time but it flies between the first slip and the second slip placed wide for a four.
The fifth ball comes in sharply as Jansen leaves and that is not very far from the off-stump.
The last ball is a wide half-volley as Jansen gets a big stride forward to drive in some style wide of the mid-off fielder for a four.
Siraj back into the attack in place of Ashwin. He continues with the old ball as Elgar misses the pull first ball before he takes one next ball.
India take the second new ball after two balls in the over. Jansen is beaten as the new ball bounces a bit extra before he takes one on the leg side.
Elgar pulls the short ball but Shreyas at square leg dives to his right and comes up with a one-handed stop to save the boundary.
Bumrah from the other end. Jansen gets an inside edge for a single before Elgar misses the clip off a full delivery and struck on the pads but the ball has pitched outside the line of leg stump.
Elgar taps the last ball to square leg for a single to retain the strike.
In the next over, Elgar slaps Siraj square on the off-side for a four and then takes one followed by another run to his partner.
Elgar flicks the last ball in the gap through midwicket for two runs.
South Africa are well-placed on 323/5 in 84 overs for an overall lead of 78 runs, with Elgar on 170 and Jansen on 38.