 Wray was first elected to the Northwest Territories Legislature, winning a by-election held in the Keewatin North electoral district in 1982.Keewatin North was abolished a year later, and he then ran in the new Kivallivik electoral district in the 1983 Northwest Territories general election and was returned for his second term.In his second term Wray was appointed to the cabinet, serving numerous portfolios.