public static IE_UnitTest page_Login(this IE_UnitTest tBot, string loginReferer) { tBot.open_Page(loginReferer.valid() ? "login?LoginReferer={0}".format(loginReferer) : "login"); return(tBot); }
public static IE_UnitTest open_ASync(this IE_UnitTest tbot, string virtualPath) { O2Thread.mtaThread(() => tbot.open_Page(virtualPath)); return(tbot); }
public static IE_UnitTest open(this IE_UnitTest ieUnitTest, string virtualPath) // can't use generics here in order to have simpler method calls: tbot.open("...."); vs tbot.open<API_IE_TBot>("..."); { return(ieUnitTest.open_Page(virtualPath)); }
public static IE_UnitTest login_As_Admin(this IE_UnitTest tBot) { tBot.open_Page("rest/login/{0}/{1}".format(Tests_Consts.DEFAULT_ADMIN_USERNAME, Tests_Consts.DEFAULT_ADMIN_PASSWORD)); return(tBot); }