The ethnically fractured opposition failed to dislodge KANU from power in elections in 1992 and 1997 , which were marred by violence and fraud , but were viewed as having generally reflected the will of the Kenyan people .