It wasn’t until the passage of the 17th Amendment, ratified in 1913, that voters were able to directly elect their senators. Before that, senators were selected by the individual state governments, as outlined in Article I, Section 3 of the Constitution.
Source: Annenberg Classroom