 On 23 March, 2018 he became the second batsman after Desmond Haynes to carry his bat right through the innings on 3 occasions in Test cricket history.Elgar was selected for the Sri Lankan ODI series in early 2012 but had to withdraw citing injury.He eventually made his ODI debut against England in an rain-abandoned match, but found success in his second match, scoring 15 in his maiden innings before being bowled by Graeme Swann.