Wager of law was replaced by jury, from early times, to determine fact, at a time that judges managed legal procedure and did not determine fact.
Wager of law was practiced in England and the US until the 16th century, in criminal matters, and the 19th century, in civil matters.