Member of the Long Parliament
On 21 October 1640 Wilde was returned as one of the knights of the shire for Worcestershire to the Long Parliament. He was chairman of the committee appointed to prepare the impeachment against the thirteen bishops concerned in making the new canons, which on 3 August 1641 he presented to the House of Lords. In December he presided over a committee of inquiry as to a plot to bring in the army to overawe the parliament, and on 6 January 1642 he was chairman of the committee of the house appointed to sit in the Guildhall, London, to consider the safety of the kingdom and city, and the preservation of the privileges of parliament, which were threatened by the seizure of the members' papers and the king's demand for the arrest of the five members. The same month he reported a conference with the lords respecting the action of the attorney-general, Sir Edward Herbert, and conducted the impeachment of Herbert which was ordered by the Commons.
On the outbreak of the First English Civil War, the Commons recommended him for appointment as a deputy-lieutenant of Worcestershire on 18 March 1642, and he was made a sequestration commissioner for that county in April 1643. In February 1643 he was recommended for the post of chief baron of the exchequer in the unsuccessful propositions made by the Commons to the king. He was one of the twenty members of parliament who were lay members of the Westminster Assembly which met on 1 July 1643.
Parliament, at Wilde's suggestion, ordered a new Great Seal of the Realm in the place of that which Edward Littleton, 1st Baron Lyttleton of Mounslow had carried to the king. It was resolved to entrust the new seal to six commissioners, comprising two lords and four commoners, and on 10 November 1643 Wilde was elected as one of the latter. By successive votes these commissioners, notwithstanding the self-denying ordinance, retained the custody of the seal for three years, when on 30 October 1646 they surrendered it to the speakers of the two houses.
Wilde was one of the managers on the part of the Commons (where he still kept his seat) in the impeachment of Archbishop William Laud, whose trial commenced on 12 March 1644. He served on most of the principal committees of the Long parliament. He was made recorder of Worcester in July 1646. The Commons ordered him and others to hold assizes in the counties of Gloucester, Monmouth, and Hereford. Subsequently, he was ordered to go the Oxfordshire and Hampshire circuits. As judge of assize, he condemned Captain John Burley to be hanged at Winchester for causing a drum to be beaten for 'God and King Charles' at Newport, Isle of Wight, to rescue the captive king, while he directed the grand jury to ignore the bill of indictment against Major Edmund Rolph for plotting to murder the king.
On 12 October 1646 Parliament filled the vacancies on the judicial bench, and they appointed him chief baron of the exchequer, replacing Sir Richard Lane, who had been appointed by the King. Wilde retained this position in 1649 when the king was beheaded; but though nominated by parliament a member of the high court of justice for the trial of the king on 1 January 1649, he, like the other judges, took care not to attend any of its meetings, and his excuses were allowed. He took the new oaths of office under the Commonwealth, and was elected a member of the first council of state on 14 February. He was placed upon numerous committees, and was re-elected on 12 February 1650 to the second council of state, which lasted until 15 February 1651. He was one of the militia commissioners for Worcestershire on 25 September 1651.