As the sun came up on Election Day and bleary-eyed voters began to make their way to polling locations throughout Connecticut, dozens of lawyers were waiting.

For months, Democrats and Republicans had been assembling teams of volunteer attorneys, with some assigned to be poll monitors and others serving on “strike teams” that would file emergency motions if voting problems arose. Starting three weeks before the election, both parties offered training sessions, focusing on potential issues in high-traffic polling places in Bridgeport, Hartford, New Haven and Waterbury.