Though he had lived in Nanton, Alberta for several years, he was still regarded as a newcomer when he was selected as the Conservative candidate in the district of High River for the 1905 Alberta provincial election. He had what the Calgary Herald described as "extensive farming operations near Nanton" and was the general manager of Nanton Grain & Lumber. Robertson won a close race against Liberal candidate Richard Alfred Wallace; final results took more than a month to come in, and until they did the candidates traded the unofficial lead. He was one of only two Conservatives elected to the Legislative Assembly of Alberta, along with Cornelius Hiebert. As Conservative leader R. B. Bennett was defeated in the election, Robertson led the two person opposition against Alexander Cameron Rutherford's Liberal government, which controlled the rest of the 25-seat assembly. As opposition leader, Robertson was vocal in his criticisms of Rutherford and his government. He objected to the Liberal-imposed terms under which Alberta had entered Confederation, which included a requirement that Alberta's provincial government provide public funding to Roman Catholicseparate schools and control over Alberta's natural resources being left with the federal government. He called for public ownership of the telephone system and railways at a time when the government's policy was to leave both under the control of the private sector. He also demanded that the government reveal its position on a permanent capital for the province—Edmonton had been fixed as interim capital, with the choice of final capital to take place after the first provincial election, and the government was trying to avoid taking a position that might offend many Albertans' regional sensibilities. When the legislature established new electoral boundaries, Robertson objected to provisions giving Edmonton and Calgary two seats each, and argued that the maximum time between elections—five years—was too long. Robertson was handicapped in his efforts by several factors. First, the Liberal majority was such that it was difficult for a two-member opposition to make itself heard, and more difficult still to have any tangible effect. Second, much of the government's legislation was of an uncontroversial variety, establishing the government institutions necessary for any new province. Third, Hiebert had little interest in partisan politics, and sided increasingly with the government; he eventually left the Conservative Party and unsuccessfully sought re-election as an independent. Despite Robertson's best efforts, the Conservatives declined to make his leadership permanent, opting instead to go into the 1909 election effectively leaderless. Robertson himself sought re-election in the new district of Nanton, where he was defeated by Liberal John M. Glendenning.
After leaving office
For a time, Robertson was a partner in the Hanna Realty Company—Robertson, Trenaman and Stirling in Hanna, but it dissolved in 1913 when, more than fifty years old, he went to study the law. He completed his studies in 1917, and was admitted to the bar the next year, after which he practiced law in Three Hills. In the 1913 provincial election, Robertson ran again, in the district of Hand Hills. He was once again defeated, this time by Liberal candidate Robert Eaton.