Beispiel #1
0
        public static BasePage NavigatePageTo(BaseElement pointMenuToHover, BaseElement pointMenuToClick, SitePages.Pages page)
        {
            WDriver.HoverOnElement(pointMenuToHover);

            var elementToClick = pointMenuToClick.FindElement(pointMenuToClick.Locator);

            WDriver.SetBackgroundColorForElement(elementToClick);
            pointMenuToClick.Click();

            return(SitePages.GetPage(page));
        }
        public void SelectIssueType(string issueType)
        {
            var issueField = BaseElement.FindElement(By.Id("issuetype-field"));

            issueField.SendKeys(issueType + Keys.Enter);

            var wait = new WebDriverWait(_Af.Driver, TimeSpan.FromSeconds(AutomationFramework.Timeout));

            wait.IgnoreExceptionTypes(typeof(StaleElementReferenceException));
            wait.Until(_ => BaseElement.FindElement(By.XPath(WidgetLoadXPath))
                       .GetAttribute("class") != LoadingClass);
        }
Beispiel #3
0
 public void PressUpdateButton()
 {
     BaseElement.FindElement(By.Id("edit-issue-submit")).Click();
 }
Beispiel #4
0
 public void EnterDescription(string description)
 {
     BaseElement.FindElement(By.Id("description")).SendKeys(description);
 }
Beispiel #5
0
 public void PressReportedByMe()
 {
     BaseElement.FindElement(By.Id("filter_reportedbyme")).Click();
 }
 public void PressSubmitButton()
 {
     BaseElement.FindElement(By.Id("create-issue-submit")).Click();
 }
        public void EnterDescription(string description)
        {
            var descriptionField = BaseElement.FindElement(By.Id("description"));

            descriptionField.SendKeys(description);
        }
        public void EnterSummary(string summary)
        {
            var summaryField = BaseElement.FindElement(By.Id("summary"));

            summaryField.SendKeys(summary);
        }
        public void SelectProject(string projectName)
        {
            var projectField = BaseElement.FindElement(By.Id("project-field"));

            projectField.SendKeys(projectName + Keys.Enter);
        }