By the end of May 1745, Austrian and Saxon troops invaded Prussian Silesia but were halted by Prussian forces at the Battle of Hohenfriedberg on 4 June. Maria Theresa's husband Francis I was finally elected Holy Roman Emperor on 13 September, and Frederick's troops gained shining victories at Soor and Kesselsdorf, occupying Dresden on 18 December. Frederick, however, had to cope with a rising number of enemy powers and expiring resources, all the more because he had failed to obtain support from Empress Elizabeth of Russia. Facing the situation, both side agreed on a "status quo".