Cooksley was a market vegetable grower and, in 1944, President of the New Zealand Council of Commercial Gardeners.[3] In 1943, he lost the general election for the seat of Otaki, on behalf of the National Party. He represented the Wairarapa electorate from 1949 till 1963, when he retired.[4]