Jon Wilkin put Saints 12-4 up at the break when Chris Riley could not control the slippery ball following the loose forward's grubber kick and Wilkin crashed over.
Dobson's conversion put Warrington further behind, but they gradually took more control of possession and territory and were rewarded when Riley crossed in the corner.