Example #1
0
 public virtual void BeforeEach()
 {
     FW.SetLogger();
     Driver.Init();
     Pages.Init();
     Driver.Goto(FW.Config.Test.Url);
 }
Example #2
0
 public virtual void BeforeEach()
 {
     FW.SetLogger();
     Driver.Init();
     WrapPages.Init();
     Driver.Current.Manage().Window.Maximize();
     Driver.GoToPage(FW.Config.Test.Url);
 }
Example #3
0
 public virtual void BeforeEach()
 {
     FW.SetLogger();
     Driver.Init();
     Pages.AllPages.Init();
     Driver.GoTo(FW.Config.Test.Url);
     Driver.WindowMaximize();
 }
Example #4
0
        public void Set_logger()
        {
            FW.SetLogger();
            FW.Log.Info("Test Message");
            var file = File.ReadAllText(FW.CurrentTestDirectory + "/log.txt");

            Assert.That(FW.CurrentTestDirectory.FullName.EndsWith("Set_logger"));
            Assert.That(file.Contains("Test Message"));
        }
Example #5
0
 public void BeforeEach()
 {
     FW.SetLogger();
     Driver.Init();
     PagesWrapper.Init();
     Driver.GotTo("https://statsroyale.com");
     Driver.Current.Manage().Window.Maximize();
     Thread.Sleep(6000);
     Driver.Current.FindElement(By.XPath("/html/body/div[1]/div[1]/div[2]/span[1]/a")).Click();
 }
Example #6
0
        public virtual void Setup()
        {
            FW.SetLogger();

            Driver.Init(
                type: FW.Config.Driver.Type,
                browser: FW.Config.Driver.Browser,
                setWait: FW.Config.Driver.Wait
                );

            Pages.Init();
        }
Example #7
0
 public virtual void Setup()
 {
     FW.SetLogger();
     Driver.Init();
     Driver.Goto(FW.Config.Test.Url);
 }