public static void WaitForLoad(this IFrame Frame) { ThreadTools.Wait(100); while (Frame.IsLoading()) { ThreadTools.Wait(5, true); } }