Given India's influence over the current ruling party, New Delhi desperately wanted to see the victory of Sajith Premadasa, a candidate of Wickremesinghe's United National Party (UNP) and Pakistan was hoping for the victory of Gotabaya Rajapaksa, the brother of former Sri Lankan President Mahinda Rajapaksa.
His rival Sajith Premadasa had already conceded.
His triumph will, however, alarm Sri Lanka's Tamil and Muslim minorities as well as activists, journalists and possibly some in the worldwide community following the 2005-15 presidency of his older brother Mahinda Rajapaksa.
However, India, Sri Lanka's largest neighbour in South Asia would be wary of a return of the Rajapaksa clan to power in Colombo, say analysts. "I promise not to stop, until we reach the heights Sri Lankans aspire to", he added.
Results from Rajapaksa's core support base, Sri Lanka's Sinhalese-majority regions were yet to be finalized.
Supporters from rival parties meanwhile clashed in a tea plantation area 90 kilometers (55 miles) east of the capital Colombo, with two people taken to hospital with cut injuries, the election commission said. The militant Islamic State group also claimed responsibility for the attack, which left 45 foreigners dead.
The defeat of the Tamil Tigers separatist group in 2009 ended almost 30 years of civil war in Sri Lanka and earned the Rajapaksa brothers widespread support from the country's Sinhalese Buddhist majority.
When Mahinda Rajapaksa was defeated in the January 8, 2015 Presidential election, he blamed India and the West for it, although he was defeated because he had alienated the majority Sinhalese and the minority Tamils and Muslims by his high-handed approach and also his corrupt deals.
According to the Sri Lankan Election Commission, around 80% of the electorate of 15.99 million had cast their votes on Saturday.
Rajapaksa and his brother, a former president of the island nation Mahinda, are credited with bringing an end to the country's quarter century-long civil war in 2009, when government troops defeated Tamil separatists.
Mr Rajapaksa and his brother deny the allegations.
Those Muslims also wish to express our honest thanks to Mr Basil Rajapaksa, Former Hon Minister and the National Organizer of the SLPP and the architect of the new party that made all this happen politically.
But they are detested and feared by many Tamils, who make up 15pc of the population.
To those who raised issues related to rights abuse during his time as defence secretary he said last month during the campaign: "You're talking about the past all the time, let's talk about the future".
Under Mahinda, Sri Lanka also borrowed heavily from China for infrastructure projects and even allowed two Chinese submarines to dock in Colombo in 2014, alarming Western countries as well as India.
The only major incident was on Saturday when gunmen fired at two vehicles in a convoy of at least 100 buses taking voters from the Muslim minority to vote.