The last election they had was the disaster of 2006 https://en.wikipedia.org/…/2006_Palestinian_legislative…
At that point there were two ruling bodies, Fatah and Hamas. Hamas won Gaza (mistake) and Fatah the West Bank.
Fatah had the support of the rest of the world, including the USA and, for a short time, Israel.
But Netanyahu did and still does not want Fatah, who still is in charge of the West Bank, to control Gaza. He wants Israel to control Gaza.
So there has been a lot of conflation that makes it appear that Hamas=Palestine=Hamas, completely ignoring Fatah and West Bank entirely.