Example #1
0
        public void Test2()
        {
            LoginSteps loginSteps = new LoginSteps(Driver);

            loginSteps.LogIn();

            Assert.IsTrue(new DashboardPage(Driver).IsPageOpened());
            Assert.AreEqual(Driver.Title, "All Projects - TestRail");
        }
Example #2
0
        public void Test4()
        {
            LoginSteps loginSteps = new LoginSteps(Driver);

            loginSteps.LogIn();

            var start   = DateTime.Now;
            var element = _waitService.ExistsElement(By.Id("sidebar-projects-add"));
            var stop    = DateTime.Now;

            Console.Out.WriteLine(stop.Ticks - start.Ticks);
        }
Example #3
0
        public void TableTest()
        {
            LoginSteps loginSteps = new LoginSteps(Driver);

            loginSteps.LogIn();

            Driver.Navigate().GoToUrl("https://aqa04onl02.testrail.io/index.php?/admin/projects/overview");

            Table table = new Table(Driver, By.CssSelector("table.grid"));

            Console.Out.WriteLine(table.RowCount());
        }
Example #4
0
        public void ActionTest2()
        {
            LoginSteps loginSteps = new LoginSteps(Driver);

            loginSteps.LogIn();

            Driver.Navigate().GoToUrl(@"https://aqa04onl02.testrail.io/index.php?/cases/edit/36/1");

            var webElement1 = new UIElement(Driver, By.ClassName("icon-markdown-table"));

            webElement1.Hover();

            Thread.Sleep(5000);
        }
Example #5
0
        public void Test1()
        {
            LoginSteps loginSteps = new LoginSteps(Driver);

            loginSteps.LogIn();

            Driver.Navigate().GoToUrl("https://aqa04onl01.testrail.io/index.php?/admin/overview");
            new DashboardPage(Driver, true);

            Assert.IsTrue(new DashboardPage(Driver).IsPageOpened());
            Assert.AreEqual(Driver.Title, "All Projects - TestRail");

            Console.Out.WriteLine(Project.Name);
            Console.Out.WriteLine(Project.Type);
        }
Example #6
0
        public void ActionTest1()
        {
            LoginSteps loginSteps = new LoginSteps(Driver);

            loginSteps.LogIn();

            Driver.Navigate().GoToUrl(@"https://aqa04onl02.testrail.io/index.php?/cases/edit/36/1");

            var webElement  = _waitService.GetVisibleElement(By.Id("custom_preconds"));
            var webElement1 = _waitService.GetVisibleElement(By.ClassName("icon-markdown-table"));

            Actions actions = new Actions(Driver);

            actions
            .MoveToElement(webElement1)
            .Build()
            .Perform();

            //((IJavaScriptExecutor) Driver).ExecuteScript("arguments[0]", webElement);

            Thread.Sleep(5000);
        }