Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 public static IE_UnitTest open_ASync(this IE_UnitTest tbot, string virtualPath)
 {
     O2Thread.mtaThread(() => tbot.open_Page(virtualPath));
     return(tbot);
 }
Esempio n. 3
0
 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));
 }
Esempio n. 4
0
 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);
 }