public void Open() { string dateFormatted = DateOps.DateToPolishFormatInString(competitionDate); string expectedString = competitionName + " " + dateFormatted + " " + competitionDescription; string xpathToRowPostion = "]/td[4]/a[2]"; TableOps.FindAndOpenRowInTable(expectedString, xpathToRowPostion); }
public void Open() { string dateFormatted = DateOps.DateToPolishFormatInString(date); string expectedString = trainingName + " " + dateFormatted; string xpathToRowPostion = "]/td[3]/a[2]"; TableOps.FindAndOpenRowInTable(expectedString, xpathToRowPostion); }
public void Delete() { string dateFormatted = DateOps.DateToPolishFormatInString(competitionDate); string expectedString = competitionName + " " + dateFormatted + " " + competitionDescription; string xpathToRowPostion = "]/td[4]/a[3]"; TableOps.FindAndOpenRowInTable(expectedString, xpathToRowPostion); var deleteButton = Driver.Instance.FindElement(By.XPath("//form/div/input")); deleteButton.Click(); }