public void Test2() { LoginSteps loginSteps = new LoginSteps(Driver); loginSteps.LogIn(); Assert.IsTrue(new DashboardPage(Driver).IsPageOpened()); Assert.AreEqual(Driver.Title, "All Projects - TestRail"); }
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); }
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()); }
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); }
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); }
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); }