Voters cast ballots in key election that could swing parliament in favour of opposition for the first time in 17 years.