Out-of-form South African opener Aiden Markram made 16, all from boundaries but was then caught sharply at third slip by KL Rahul.

Having escaped with an extravagant drive which flew between third slip and gully, Markram repeated the shot against the next ball and was out with the total on 23.

India appeared to have made a crucial breakthrough when Elgar was given out leg before wicket to Ashwin when he missed a delivery angled in from around the wicket. He was on 22 and the total on 60.

Elgar sought a review of umpire Marais Erasmus’ decision.

It seemed an optimistic challenge but the ball tracking technology showed the ball was going just over the top of the stumps.

Kohli and his team seemed astonished at the outcome and Kohli shouted into the stump microphone at the end of the over.

Elgar continued to bat doggedly. Although he added only eight more runs, the partnership with Petersen grew by another 41 runs.

Elgar was then given not out by umpire Adrian Holdstock but a review by India showed a faint spike as the ball swung down the leg side.