The by-election was triggered by the sudden resignation of Victorian Liberal deputy leader Sam Groth.