The elections take place with France on heightened security alert following a spate of attacks by militants