/// <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)); }
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); }
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(); } } }
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)); }
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(); }
public void ClickOnDeleteButton() { DeleteButton.Click(); }
public void DeleteCreatedResevation() { ReservationEmailDeleteButton.Click(); DeleteButton.Click(); }
public void DeleteButtonClick() { DeleteButton.Click(); }
/// <summary> /// Deletes the report period. /// </summary> public void DeleteTheReportPeriod() { DeleteButton.Click(); PageHelper.WaitForElement(Driver, ConfirmDeleteButton).Click(); }
public void DeleteArticle() { Article.Click(); DeleteButton.Click(); }
public void DeleteItemContentEditor() { DeleteButton.Click(); }
public void DeleteMessage() { DeleteButton.Click(); }
public CreateExpensePage DeleteButtonClick() { DeleteButton.Click(); return(this); }