Sri Lanka's parliament on Wednesday overwhelmingly voted six-time prime minister Ranil Wickremesinghe as president to replace Gotabaya Rajapaksa, who fled the crisis-wracked country and resigned last week.