예제 #1
0
 void delete_MouseButtonClick(Widget source, EventArgs e)
 {
     checkDeleteOnClose = false;
     if (DeleteElement != null)
     {
         DeleteElement.Invoke(element);
     }
     hide();
 }
예제 #2
0
 static public void Delete(string element)
 {
     if (_coll.Count > 0)
     {
         if (_coll.Contains(element))
         {
             _coll.Remove(element);
             DeleteElement?.Invoke(element);
         }
     }
 }
예제 #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>());
        }