Parties reach consensus for presidential candidate