In the end England underwent the  Glorious Revolution  of 1688, when Catholic James II (Scotland's James VII) was deposed and the Protestant William of Orange (1689 1702) took the British crown.
James II and William of Orange held and election to decide who would rule Britain