Chasing 317 runs, WA collapsed to 6-64 before finishing the day at 6-115, with Marcus Stoinis on 52 off 53 balls and Ashton Agar on 20.

Shaun Marsh fell for a duck after his gritty 81 in the first innings, while Hilton Cartwright (8), Will Bosisto (0). Ash Turner (1), ,and Josh Inglis (0) also fell cheaply.

Some individual brilliance from the likes of Shaun and Mitch Marsh has got them over the line in two of those matches.

The Blues were dismissed for 253 in their second innings, with all-rounder Stoinis (3-43) and Jhye Richardson (3-58) doing the bulk of the damage.

Moises Henriques top scored with 48, while Jack Edwards (47) and Kurtis Patterson (43) also chipped in with handy totals.

The match then quickly turned on its head.

Bosisto was the first to fall when he was trapped lbw by Trent Copeland (3-54).

And WA were reeling at 2-1 when Shaun Marsh departed.

Skipper Mitch Marsh (30) offered some resistance, but it was ended when he was bowled by Nathan Lyon.

The scoreboard read 6-64 when Inglis was stumped off the bowling of Lyon, before some late heroics from Stoinis ensured WA made it to stumps.

Earlier in the day, NSW opener Nick Larkin (29) endured a scary moment when he was struck on the stem guard at the back of his helmet by a Richardson bouncer.

Larkin, who lost sight of the ball and turned away moments before it struck him, needed a replacement guard after the incident.

The 28-year-old escaped injury but was dismissed next over when he was trapped lbw by Mitch Marsh (2-29).