Greece's parliament on Wednesday elected the first woman president in the country's history, a senior judge with no party-political allegiance.