Kok was political secretary to Opposition LeaderLim Kit Siang from 1990 to 1995. In 1995 general election, she contested the Ipoh Barat Parliamentary seat on a DAP ticket but was defeated by the Malaysian Chinese Association candidate. Kok resigned as political secretary after that to further her studies and worked part-time at the Secretariat of the Political Leaders Network Promoting Democracy in Burma from 1996 till 1998. In the 1999 general election, Kok won the Parliamentary seat of Seputeh in Kuala Lumpur with a majority of 5,200 and was re-elected in 2004 with a majority of 12,895, the largest winning margin among the 13 elected DAP MPs. In the 2008 general election, Kok retained the Seputeh seat with a majority of 36,492, the largest majority in any constituency and won the Kinrara seat in Selangor State Legislative Assembly at the same time. She was elected in the new Selangor State Executive Council, and was named senior executive councillor who was put in charge of investment, trade and industry to ensure all funds are directed to Malaysians. In 2013 general election, she won re-election to Parliament, garnering over 86 percent of the formal votes cast in her Seputeh constituency. Kok was re-elected to Seputeh seat for the fifth term in the 2018 general election but on the ticket of People's Justice Party as the move of Pakatan Harapan using a common symbol in the election. In view of the bad market of palm oil, she launches few palm oil drinking campaign to boost the market demand on the palm oil and further inviting local tour guide to become the ambassadors for palm oil.
Controversy
In 2008, she was arrested under the Internal Security Act. Under the act, the police have no obligation to disclose the alleged offence if any at all. The Malay newspaper Utusan Malaysia had reported she had "advised" a mosque in Puchong not to use loudspeakers while making the azan. She denied the allegation. It was found out later that a faulty loudspeaker system was the reason why the mosque did not broadcast the azan. Furthermore, while there was a petition sent to the mosque, the petition requested for the mosque to lower the volume during 'ceramah' or sermons and not during the azan. The administrator of the mosque, as well as the petitioners, confirmed that Kok was not involved in the petition. She was released on 19 September 2008. On 27 September, two Molotov cocktails were thrown into the compound of her family residence, accompanied by a warning letter. No-one was hurt. In May 2014, Kok was charged with sedition for making a Chinese New Year video posted on YouTube which allegedly contained seditious elements. Kok was among the first of several other opposition politicians to be caught in a nationwide sedition dragnet.