Пример #1
0
        /// <summary>
        /// Deletes review
        /// </summary>
        /// <returns>Returns on ReviewsPageLogic</returns>
        public ReviewsPageLogic DeleteReview()
        {
            DeleteButton.Click();
            IAlert alert = Application.Get().Browser.Driver.SwitchTo().Alert();

            alert.Accept();
            return(new ReviewsPageLogic());
        }
        public void DeleteWrestler()
        {
            DeleteButton.Click();
            var confirmDialog = new ConfirmDialog();

            confirmDialog.YesButton.Click();
            new WebDriverWait(Driver, TimeSpan.FromSeconds(10)).Until(t => Ribbon.CurrentTab.Name == "Wrestlers");
        }
        public void DeleteEntity(string name)
        {
            Trace.WriteLine(String.Format("Deleting entity data '{0}'", name));
            SelectEntityRow(name);
            DeleteButton.Click();
            var alert = Web.PortalDriver.SwitchTo().Alert();

            alert.Accept();
            Wait.Until(d => !DataTableDiv.Text.Contains(name));
        }
Пример #4
0
        public void DeleteChooser(string chooserName)
        {
            Trace.WriteLine(String.Format("Deleting chooser '{0}'", chooserName));
            SelectChooser(chooserName);
            DeleteButton.Click();
            var alert = Web.PortalDriver.SwitchTo().Alert();

            alert.Accept();
            Wait.Until(d => !new Link(By.LinkText(chooserName)).Exists);
        }
Пример #5
0
 public void DeleteTestUser()
 {
     for (int i = 0; i < Elements.Count; i++)
     {
         Elements[i].Click();
         if ((UserNameField.GetAttribute("value") == "*****@*****.**"))
         {
             DeleteButton.Click();
             i = -1;
         }
         else
         {
             CancelButton.Click();
         }
     }
 }
Пример #6
0
 public void Delete()
 {
     for (int i = 0; i < Elements.Count; i++)
     {
         Elements[i].Click();
         if ((UserNameField.GetAttribute("value") != "*****@*****.**"))
         {
             DeleteButton.Click();
             i = -1;
         }
         else
         {
             CancelButton.Click();
         }
     }
 }
        public EmployeeListPage ClickDeleteEmployee(bool ack)
        {
            DeleteButton.Click();

            IAlert alert = _Driver.SwitchTo().Alert();

            if (ack)
            {
                alert.Accept();
            }
            else
            {
                alert.Dismiss();
            }

            return(PageFactory.InitElements <EmployeeListPage>(_Driver));
        }
Пример #8
0
        public void DeleteAction()
        {
            //click the create button

            Administrator.Click();

            //click the employee button
            Employee.Click();

            Thread.Sleep(3000);
            //click the lastPage button
            lastPage.Click();

            //click the delete button
            DeleteButton.Click();

            Thread.Sleep(3000);

            //click the POPup information
            CommonDrive.driver.SwitchTo().Alert().Dismiss();
        }
Пример #9
0
 public void ClickOnDeleteButton()
 {
     DeleteButton.Click();
 }
Пример #10
0
 public void DeleteCreatedResevation()
 {
     ReservationEmailDeleteButton.Click();
     DeleteButton.Click();
 }
Пример #11
0
 public void DeleteButtonClick()
 {
     DeleteButton.Click();
 }
Пример #12
0
 /// <summary>
 /// Deletes the report period.
 /// </summary>
 public void DeleteTheReportPeriod()
 {
     DeleteButton.Click();
     PageHelper.WaitForElement(Driver, ConfirmDeleteButton).Click();
 }
Пример #13
0
 public void DeleteArticle()
 {
     Article.Click();
     DeleteButton.Click();
 }
Пример #14
0
 public void DeleteItemContentEditor()
 {
     DeleteButton.Click();
 }
Пример #15
0
 public void DeleteMessage()
 {
     DeleteButton.Click();
 }
Пример #16
0
 public CreateExpensePage DeleteButtonClick()
 {
     DeleteButton.Click();
     return(this);
 }