public BaseTest() { FluentSession.EnableStickySession(); Config.WaitUntilTimeout(TimeSpan.FromMilliseconds(1000)); // Create Page Objects this.InputsPage = new Pages.InputsPage(this); this.AlertsPage = new Pages.AlertsPage(this); this.ScrollingPage = new Pages.ScrollingPage(this); this.TextPage = new Pages.TextPage(this); this.DragPage = new Pages.DragPage(this); this.SwitchPage = new Pages.SwitchPage(this); // Default tests use chrome and load the site //FluentAutomation.SeleniumWebDriver.Bootstrap(SeleniumWebDriver.Browser.Chrome); //, SeleniumWebDriver.Browser.InternetExplorer, SeleniumWebDriver.Browser.Firefox); // Test browserstack local //WbTstr.Configure() // .EnableDebug() // .UseBrowserStackAsRemoteDriver() // .SetBrowserStackBuildIdentifier(buildResultKey) // .EnableBrowserStackLocal() // .PreferedBrowser().IsChrome() // .PreferedOperatingSystem().IsWindows() // .PreferedScreenResolution().IsAny(); WbTstr.Bootstrap(); FluentSession.DisableStickySession(); I.Open(SiteUrl); }
public BaseTest() { FluentSession.EnableStickySession(); Config.WaitUntilTimeout(TimeSpan.FromMilliseconds(1000)); // Create Page Objects this.InputsPage = new Pages.InputsPage(this); this.AlertsPage = new Pages.AlertsPage(this); this.ScrollingPage = new Pages.ScrollingPage(this); this.TextPage = new Pages.TextPage(this); this.DragPage = new Pages.DragPage(this); this.SwitchPage = new Pages.SwitchPage(this); // Default tests use chrome and load the site FluentAutomation.SeleniumWebDriver.Bootstrap(SeleniumWebDriver.Browser.Chrome);//, SeleniumWebDriver.Browser.InternetExplorer, SeleniumWebDriver.Browser.Firefox); I.Open(SiteUrl); }
public void Delete(int id) { FluentSession.GetCurrentSession().Delete(Find(id)); }
public int Update(Beer beer) { FluentSession.GetCurrentSession().Update(beer); return(beer.Id); }
public int Create(Beer beer) { FluentSession.GetCurrentSession().Save(beer); return(beer.Id); }
public Beer Find(int id) { return(FluentSession.GetCurrentSession().Get <Beer>(id)); }
public IList <Beer> FindAll() { return(FluentSession.GetCurrentSession().CreateCriteria <Beer>().SetCacheable(true).SetCacheMode(CacheMode.Normal).List <Beer>()); }
public FluentSkillRequest() { Session = new FluentSession(this); Context = new FluentContext(this); }
public static void Cleanup() { FluentSession.DisableStickySession(); }
public static void Setup(TestContext context) { FluentAutomation.SeleniumWebDriver.Bootstrap(SeleniumWebDriver.Browser.Chrome, SeleniumWebDriver.Browser.InternetExplorer, SeleniumWebDriver.Browser.Firefox); FluentSession.EnableStickySession(); }
public void Setup() { FluentSession.EnableStickySession(); SeleniumWebDriver.Bootstrap(Browser.Chrome); Config.WaitUntilTimeout(TimeSpan.FromMilliseconds(1000)); }
static NHibernateSessionPerRequest() { _sessionFactory = FluentSession.CreateSessionFactory(); }