public NewProjectPage SetIdentifier(string projectIdentifier) { textboxProjectIdentifier = SearchElementUtil.GetElement(driver, locatorTextboxProjectIdentifier); textboxProjectIdentifier.Clear(); textboxProjectIdentifier.SendKeys(projectIdentifier); return(this); }
public string GetNotificationAboutCreationText() { if (!IsSuccessfulCreation()) { notificationAboutCreation = (BaseElement)SearchElementUtil.GetElement(driver, locatorNegativeNotification); } return(notificationAboutCreation.Text); }
public NewIssuePage SelectStatus(IssueStatus status) { comboboxStatus = new SelectElement(SearchElementUtil.GetElement(driver, locatorComboboxStatus)); if (status != IssueStatus.Default) { comboboxStatus.SelectByText(status.ToString().Replace(" ", "")); } return(this); }
//where should use?? public Notifications GetCreationResult() { if (IsSuccessfulCreation()) { return(Notifications.Positive); } notificationAboutCreation = (BaseElement)SearchElementUtil.GetElement(driver, locatorNegativeNotification); return(Notifications.Negative); }
public NewIssuePage SelectType(IssueType type) { comboboxIssueType = new SelectElement(SearchElementUtil.GetElement(driver, locatorComboboxIssueType)); if (type != IssueType.Default) { comboboxIssueType.SelectByText(type.ToString().Replace(" ", "")); } return(this); }
public NewIssuePage SelectPriority(IssuePriority priority) { comboboxPriority = new SelectElement(SearchElementUtil.GetElement(driver, locatorComboboxPriority)); if (priority != IssuePriority.Default) { comboboxPriority.SelectByText(priority.ToString()); } return(this); }
public NewProjectPage SelectInheritMembers(bool tickParam = true) { checkboxInheritMembers = SearchElementUtil.GetElement(driver, locatorCheckboxInheritMembers); if (tickParam) { ((BaseElement)checkboxInheritMembers).Check(); } else { ((BaseElement)checkboxInheritMembers).Uncheck(); } return(this); }
public bool IsIssueCreated(IWebDriver driver, string issueName) { activityContent = SearchElementUtil.GetElement(driver, activityContentLocator); return(activityContent.FindElements(By.XPath("//dt//a")).Any(element => element.Text.Contains(issueName))); }
public NewIssuePage SetDescription(string issueDescription) { textboxDescription = SearchElementUtil.GetElement(driver, locatorTextboxDescription); textboxDescription.SendKeys(issueDescription); return(this); }
public NewIssuePage SetSubject(string issueSubject) { textboxSubject = SearchElementUtil.GetElement(driver, locatorTextboxSubject); textboxSubject.SendKeys(issueSubject); return(this); }
public HomePage ClickSubmit() { buttonLogin = SearchElementUtil.GetElement(driver, locatorButtonLogin); buttonLogin.Click(); return(new HomePage(driver)); }
public LoginPage SetPassword(string password) { textboxPassword = SearchElementUtil.GetElement(driver, locatorTextboxPassword); textboxPassword.SendKeys(password); return(this); }
public HomePage(IWebDriver driver) : base(driver) { loginIdentifier = SearchElementUtil.GetElement(driver, loginIdentifierLocator); }
public NewProjectPage ClickCreate() { buttonCreate = (BaseElement)SearchElementUtil.GetElement(driver, locatorButtonCreate); buttonCreate.Click(); return(this); }
public NewProjectPage SetHomepage(string homepage) { textboxHomepage = SearchElementUtil.GetElement(driver, locatorTextboxHomepage); textboxHomepage.SendKeys(homepage); return(this); }
public NewProjectPage SetName(string projectName) { textboxProjectName = (BaseElement)SearchElementUtil.GetElement(driver, locatorTextboxProjectName); textboxProjectName.SendKeys(projectName); return(this); }
public NewProjectPage SetDescription(string projectDescription) { textboxProjectDescription = (BaseElement)SearchElementUtil.GetElement(driver, locatorTextboxProjectDescription); textboxProjectDescription.SendKeys(projectDescription); return(this); }
public CreatedIssuePage ClickCreate() { buttonCreate = SearchElementUtil.GetElement(driver, locatorButtonCreate); buttonCreate.Click(); return(new CreatedIssuePage(driver)); }
public LoginPage SetUser(string login) { textboxUser = SearchElementUtil.GetElement(driver, locatorTextboxUser); textboxUser.SendKeys(login); return(this); }
public LoginPage LogoutHomePage() { logout = SearchElementUtil.GetElement(driver, logoutLocator); logout.Click(); return(new LoginPage()); }
public bool IsSuccessfulCreation() { notificationAboutCreation = (BaseElement)SearchElementUtil.GetElement(driver, locatorPositiveNotification); return(notificationAboutCreation != null && notificationAboutCreation.Displayed); }