public void DeleteBackgroundOperation(String name)
        {
            var checkbox = new Checkbox(By.XPath("//a[text()='" + name + "']/../../td[1]/input"));

            checkbox.Click();
            BtnDelete.Click();
        }
        /// <summary>
        /// Delete a view by it's name
        /// </summary>
        public void DeleteView(string viewName)
        {
            Trace.WriteLine(String.Format("Deleting row {0} from view table", viewName));
            CheckViewTableRow(viewName);
            BtnDelete.Click();
            var alert = Web.PortalDriver.SwitchTo().Alert();

            alert.Accept();
        }
        /// <summary>
        /// Delete an activity by it's name
        /// </summary>
        public void DeleteActivity(string name)
        {
            Trace.WriteLine(String.Format("Deleting row {0} from activity table", name));
            CheckTableRow(name);
            BtnDelete.Click();
            var alert = Web.PortalDriver.SwitchTo().Alert();

            alert.Accept();
        }
        /// <summary>
        /// Delete a view by it's name
        /// </summary>
        public void DeleteState(String stateName)
        {
            Trace.WriteLine(String.Format("Deleting row {0} from states table", stateName));
            CheckViewTableRow(stateName);
            BtnDelete.Click();
            var alert = Web.PortalDriver.SwitchTo().Alert();

            alert.Accept();
            Wait.Until(d => !new Link(By.LinkText(stateName)).Exists);
        }
Ejemplo n.º 5
0
        public void Delete(int rowIndex = -1, bool getLastRow = false)
        {
            var row = GetRow(getLastRow: true);

            row.ChkBox.Click();
            BtnDelete.Click();
            var alert = Web.PortalDriver.SwitchTo().Alert();

            alert.Accept();
            ClickPortalUI.Wait.Until(d => new Container(By.XPath("//td[contains(@class, 'SuccessArea')]")).Exists);
        }
        public void DeleteSection(String sectionName)
        {
            var checkbox = new Checkbox(By.XPath("//a[text()='" + sectionName + "']/../../td[1]/input[@type='checkbox']"));

            checkbox.Checked = true;
            BtnDelete.Click();
            var alert = Web.PortalDriver.SwitchTo().Alert();

            alert.Accept();
            Wait.Until(d => !new Link(By.LinkText(sectionName)).Exists);
        }
        public void DeleteStep(String name)
        {
            var chkStep = new Checkbox(
                By.XPath("(//*[@id='_webrRSV_DIV_0']/table/tbody/tr/td[3]/a[text()='" + name +
                         "'])[1]/../../td[1]/input[@type='checkbox']"));

            chkStep.Checked = true;
            BtnDelete.Click();
            Web.PortalDriver.SwitchTo().Alert().Accept();
            Wait.Until(d => !new Link(By.LinkText(name)).Exists);
        }
Ejemplo n.º 8
0
        public void DeleteTemplate(String templateName)
        {
            var checkbox = new Checkbox(By.XPath("//a[text()='" + templateName + "']/../../td[1]/input[@type='checkbox']"));

            checkbox.Checked = true;
            BtnDelete.Click();
            var alert = Web.PortalDriver.SwitchTo().Alert();

            alert.Accept();
            var link = new Link(By.LinkText(templateName));

            ClickPortalUI.Wait.Until(d => !link.Exists);
        }
Ejemplo n.º 9
0
 public void ClickBtnDelete()
 {
     BtnDelete.Click();
 }