The Windows 10 system MessageBox window has an extra level of windows that it didn't have on Windows XP and so the UI automation wasn't able to find the buttons. By looking for the button as a descendant, and not a strict child, this fixes the test automation on Windows 10, but shouldn't cause problems on Windows XP.