Exemple #1
0
 void delete_MouseButtonClick(Widget source, EventArgs e)
 {
     checkDeleteOnClose = false;
     if (DeleteElement != null)
     {
         DeleteElement.Invoke(element);
     }
     hide();
 }
Exemple #2
0
 static public void Delete(string element)
 {
     if (_coll.Count > 0)
     {
         if (_coll.Contains(element))
         {
             _coll.Remove(element);
             DeleteElement?.Invoke(element);
         }
     }
 }
Exemple #3
0
        /// <summary>
        /// Deletes the customer.
        /// </summary>
        /// <returns></returns>
        /// <exception cref="System.NotImplementedException"></exception>
        public virtual IListPage Delete()
        {
            DeleteElement.Click();

            // Wait for confirmation modal to appear.
            WrappedDriver
            .Wait(TimeSpan.FromSeconds(2))
            .Until(d => DeleteConfirmationElement.Displayed);

            WrappedDriver
            .Wait(TimeSpan.FromSeconds(5))
            .UntilPageReloads(DeleteConfirmationElement, e => e.Click());

            return(pageObjectFactory.PreparePage <IListPage>());
        }