PERTH - South Africa overcame the loss of star paceman Dale Steyn to another shoulder injury to produce a stunning comeback on the second day of the opening Test against Australia in Perth Friday.

In reply to South Africa 's 242, Australia were cruising at 158 for none early on day two, but then lost all 10 wickets for just 86 runs to lead by only two after the first innings. At stumps on the second day, the visitors were 104 for two, an overall lead of 102 and arguably in the favoured position in the match, which seemed unthinkable 24 hours earlier.

Dean Elgar was on 46 and JP Duminy was on 34. Tha pair had added 59 after the Proteas lost two early second innings wickets, but their remarkable fightback was soured by news that Steyn would miss the remainder of the series. Steyn left the field for scans on his troublesome right shoulder before lunch, just after claiming the wicket of Australian opener David Warner for 97, and did not return for the remainder of the innings.

The 33-year-old hurt the same shoulder late last year and missed several months of cricket, and it was confirmed late in the day he had a crack in a bone and would not take further part in the three-Test series. He faces surgery and is likely to be sidelined for at least six months. Steyn pulled up sore after the fourth ball of his 13th over, having been by far the most menacing of the South African bowlers to that stage.

With 417 Test wickets, Steyn is just four shy of Shaun Pollock's record haul for South Africa . In his absence, Vernon Philander (4-56), Kagiso Rabada (2-78) and debutant spinner Keshav Maharaj (3-56) exposed the home side's batting frailty. Philander said the loss of Steyn motivated the Proteas. "We had a job in hand to get the Aussies out as cheap as possible and it was a job well done by the rest of the bowlers."

Philander said he was also keen to atone after his no-ball cost the Proteas the early wicket of Warner on the first day. Australia, who were in total control before Warner fell, then lost four wickets for just 23 runs.

Warner said the collapse continued a frustrating trend of middle order collapses for the Australians. "I feel there has been a trend for 12 or 18 months and it is tough to see as an opening batter when we fall away that easily. We have to knuckle down as a batting unit and build partnerships." Warner has 768 runs in Tests in Perth at 96 apiece and his opening partnership with Shaun Marsh (63) was a record for Australia against the Proteas at the ground. The dashing left-hander appeared certain to score his fourth Test century at the venue, but was caught at first slip by Hashim Amla and his dismissal sparked a remarkable period of play.

Just eight runs later, Steyn left the field mid-over, after reinjuring his troublesome right shoulder in an around-the-wicket delivery to Usman Khawaja. One run later, Khawaja joined Warner back in the pavilion when he was clean-bowled by young paceman Rabada for four. South African hopes were further boosted when Australian captain Steve Smith was the victim of a highly contentious lbw decision for a duck.

Smith advanced well down the wicket to Maharaj and was struck on the knee roll. He was visibly shocked to be adjudged out by veteran umpire Aleem Dar, who has already made a number of controversial decisions in the match. The Australian skipper called for a decision review, which showed the ball just clipping the outside of the stumps, which is out under new rules introduced recently.

Marsh was then the fourth Australian to fall, trapped lbw by Philander for 63. He failed to get the decision overturned and cost his side their second and last decision review, a move which came back to haunt them when Peter Nevill (23) appeared to be incorrectly given out caught by umpire Dar.

Scoreboard

SOUTH AFRICA 1ST INNINGS: 242
AUSTRALIA 1ST INNINGS:
(OVERNIGHT: 105-0)
D Warner c Amla b Steyn 97
S Marsh lbw b Philander 63
U Khawaja b Rabada 4
S Smith lbw b Maharaj 0
A Voges c and b Rabada 27
M Marsh lbw b Philander 0
P Nevill c Amla b Maharaj 23
M Starc c du Plessis b Maharaj 0
P Siddle not out 18
J Hazlewood c Duminy b Philander 4
N Lyon c Elgar b Philander 0
EXTRAS: (lb3, nb5) 8
TOTAL: (all out, 70.2 overs) 244
FOW: 1-158, 2-167, 3-168, 4-181, 5-181, 6-202, 7-203, 8-232, 9-243, 10-244
BOWLING: Steyn 12.4-3-51-1, Philander 19.2-2-56-4 (3nb), Rabada 20-1-78-2 (2nb), Maharaj 18.2-5-56
SOUTH AFRICA 2ND INNINGS:
S Cook c S Marsh b Siddle 12
D Elgar not out 46
H Amla b Hazlewood 1
JP Duminy not out 34
EXTRAS: (lb5, w5, nb1) 11
TOTAL: (2 wkts, 40 overs) 104
FOW: 1-35, 2-45
BOWLING: Starc 9-4-18-0, Hazlewood 10-2-31-1 (1nb), Siddle 8-4-12-1, Marsh 4-1-11-0 (5w), Lyon 9-2-27-0
TOSS: South Africa
UMPIRES: Aleem Dar (PAK), Nigel Llong (ENG)
TV UMPIRE: Richard Kettleborough (ENG)
MATCH REFEREE: Andy Pycroft (ZIM)