The three largest parties were virtually neck-and-neck heading into the vote, according to the latest opinion poll.