Fatah and Hamas have been locked in a power struggle since parliamentary elections in the West Bank and Gaza Strip brought Hamas to power last year .