They did vote in January 2006, where Hamas became the largest party in the Palestinian territories. They formed a coalition government with Fatah which collapsed the year later, whereafter they hunted down and killed all Fatah representatives in Gaza.