before that time all proceedings affecting the election , returns and qualifications of public officers came under the complete jurisdiction of the competent court or tribunal from beginning to end and in the exercise of judicial power only .