js.ExecuteScript("window.MyWindow = \"hello\"");
string textOld = (string)js.ExecuteScript("return window.MyWindow");
mainPage.Header.ClickHomeButton();
string textNew = (string)js.ExecuteScript("return window.MyWindow");
textNew.ShouldBeEquivalentTo(textOld);