Jonny Bairstow and Moeen Ali shared an unbroken century stand to help England open up a 311-run lead on day four of the third Test against Pakistan.
Bairstow finished the day on 82 and Moeen on 60, with their sixth-wicket partnership worth 132.
Alastair Cook (66) and Alex Hales (54) earlier fell with the score on 126 but England recovered to reach 414-5.
South Africa are the only side to successfully chase more than 211 to win a Test at Edgbaston.
Joe Root was dropped on 25 by Mohammad Hafeez off Rahat Ali, but was eventually out to Yasir Shah, who finished the day with 2-152, after a 95-run stand with James Vince.
Vince (42) batted for 123 balls to equal his best Test score before falling to Mohammad Amir, who took 2-73.
Gary Ballance (28) contributed to stands of 36 with Vince and 25 with Bairstow.