James II took advantage of the suppression of the rebellion to consolidate his power. He asked Parliament to repeal the Test Act and the Habeas Corpus Act, used his dispensing power to appoint Roman Catholics to senior posts, and raised the strength of the standing army. Parliament opposed many of these moves, and on 20 November 1685 James dismissed it. In 1688, when the birth of James Francis Edward Stuart heralded a Catholic succession, James II was deposed by William of Orange in the Glorious Revolution at the invitation of the disaffected Protestant Establishment.