Opposition parties staged boycotts and demonstrations to protest the ruling party's handling of the country's elections.