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(); }
public void Reverse() { this.MakeOneFinalState(); var tableOps = new TableOps(); this.DFATable = tableOps.GetReverseFrom(this.DFATable); var tmp = this.Finish[0]; this.Finish[0] = this.Initial; this.Initial = tmp; }
void ControlTreeDataLoader.LoadData() { if (postBack != null || AutoPostBack) { EwfPage.Instance.AddPostBack(postBack ?? EwfPage.Instance.DataUpdatePostBack); } PreRender += delegate { if (highlightWhenChecked && checkBoxFormValue.GetValue(AppRequestState.Instance.EwfPageRequestState.PostBackValues)) { CssClass = CssClass.ConcatenateWithSpace("checkedChecklistCheckboxDiv"); } }; var table = TableOps.CreateUnderlyingTable(); table.CssClass = "ewfBlockCheckBox"; checkBox = new WebControl(HtmlTextWriterTag.Input); PreRender += delegate { EwfCheckBox.AddCheckBoxAttributes(checkBox, this, checkBoxFormValue, radioButtonFormValue, radioButtonListItemId, postBack, AutoPostBack, onClickJsMethods); }; var checkBoxCell = new TableCell().AddControlsReturnThis(checkBox); checkBoxCell.Style.Add("width", "13px"); var row = new TableRow(); row.Cells.Add(checkBoxCell); var labelControl = new HtmlGenericControl("label") { InnerText = label }; row.Cells.Add(new TableCell().AddControlsReturnThis(labelControl)); PreRender += (s, e) => labelControl.Attributes.Add("for", checkBox.ClientID); table.Rows.Add(row); if (NestedControls.Any()) { var nestedControlRow = new TableRow(); nestedControlRow.Cells.Add(new TableCell()); nestedControlRow.Cells.Add(new TableCell().AddControlsReturnThis(NestedControls)); table.Rows.Add(nestedControlRow); if (!NestedControlsAlwaysVisible) { CheckBoxToControlArrayDisplayLink.AddToPage(this, true, nestedControlRow); } } Controls.Add(table); if (ToolTip != null || ToolTipControl != null) { new ToolTip(ToolTipControl ?? EnterpriseWebFramework.Controls.ToolTip.GetToolTipTextControl(ToolTip), label.Length > 0 ? (Control)labelControl : checkBox); } }
void ControlTreeDataLoader.LoadData() { action.AddToPageIfNecessary(); PreRender += delegate { if (setup.HighlightedWhenChecked && checkBoxFormValue.GetValue(AppRequestState.Instance.EwfPageRequestState.PostBackValues)) { CssClass = CssClass.ConcatenateWithSpace("checkedChecklistCheckboxDiv"); } }; var table = TableOps.CreateUnderlyingTable(); table.CssClass = "ewfBlockCheckBox"; checkBox = new WebControl(HtmlTextWriterTag.Input); PreRender += delegate { EwfCheckBox.AddCheckBoxAttributes( checkBox, this, checkBoxFormValue, radioButtonFormValue, radioButtonListItemId, action, setup.TriggersPostBackWhenCheckedOrUnchecked, jsClickHandlerStatementLists.SelectMany(i => i())); }; var checkBoxCell = new TableCell().AddControlsReturnThis(checkBox); checkBoxCell.Style.Add("width", "13px"); var row = new TableRow(); row.Cells.Add(checkBoxCell); var labelControl = new HtmlGenericControl("label") { InnerText = label }; row.Cells.Add(new TableCell().AddControlsReturnThis(labelControl)); PreRender += (s, e) => labelControl.Attributes.Add("for", checkBox.ClientID); table.Rows.Add(row); if (nestedControls.Any()) { var nestedControlRow = new TableRow(); nestedControlRow.Cells.Add(new TableCell()); nestedControlRow.Cells.Add(new TableCell().AddControlsReturnThis(nestedControls)); table.Rows.Add(nestedControlRow); if (!setup.NestedControlsAlwaysVisible) { CheckBoxToControlArrayDisplayLink.AddToPage(this, true, nestedControlRow); } } Controls.Add(table); if (ToolTip != null || ToolTipControl != null) { new Controls.ToolTip( ToolTipControl ?? EnterpriseWebFramework.Controls.ToolTip.GetToolTipTextControl(ToolTip), label.Length > 0 ? (Control)labelControl : checkBox); } }