 As a Conservative, Whiteley was a Member of Parliament (MP) for Stockport from 1893 to 1900.He then joined the Liberal Party, in whose interest he was elected M.P.in 1900 for Pudsey, serving until 1908.