looked favourites when they led 22-14 in the second half but the Wolves came back to make certain of finishing in seventh spot.
Reduced to 12 men, Castleford
struggled to keep Wakefield out but held on to clinch a win which consolidates their fourth place in the table.
Salford led 10-8 with just seconds of the clash remaining, before Webster crashed over in the corner to secure Castleford
a 14-10 victory and keep Salford 12th in the table.
beat the Warriors 36-31 in Round 4 of Super League but McIlorum is hoping it will be his team who are celebrating when the whistle blows at the end of today's clash.
were not finished and wing Wainwright went over as they held firm to claim just their second win of the season.
Leroy Cudjoe's late try set up a tense finish but Castleford
hung on and go back into the play-off places.
My focus has been on beating Castleford
, not joining them.
The deal was announced by Wakefield chairman Michael Carter, who said: "With Paul signing for Castleford
next year there was an opportunity to bring Scott here, which suited all parties and, with the cooperation of the Castleford
Tigers, we managed to get the deal done quickly.
Recommendations Leeds -12 2pts 10-11 general Castleford
1pt 10-11 general Wakefield +12 2pts Evs Blue Square, 888sport STANDINGS SUPER LEAGUE PWD L F A Pts Wigan .
A late Giants comeback had sent Castleford
crashing out of the competition at the quarter-final stage.
stormed to their second straight win by crushing Engage Super League newcomers Salford at The Jungle.
climbed up to third in the table with a first away win over Catalans Dragons in Perpignan.