public void WhenIAddATaskToEvent(string eventName, Table tasks) { eventName += uniqueStamp; GetEventPanel(eventName); foreach (var task in tasks.Rows) { if (task.Keys.Contains("Owner") && task["Owner"] != string.Empty) { task["Owner"] = task["Owner"] + uniqueStamp; } EventPanel.AddTaskDialog(); TaskDialog.SetFields(task); Dialog.Save(); } }
public void WhenIAddATaskToEvent(string eventName, Table tasks) { eventName += uniqueStamp; GetEventPanel(eventName); foreach (var task in tasks.Rows) { if (task.Keys.Contains("Owner") && task["Owner"] != string.Empty) { task["Owner"] = task["Owner"] + uniqueStamp; } EventPanel.AddTaskDialog(); Dialog.SetTextField("//div[contains(@id,'dataformdialog')]//input[contains(@id,'_NAME_value')]", task["Name"]); Dialog.SetTextField("//textarea[contains(@id,'_COMMENT_value')]", task["Comment"]); Dialog.SetTextField("//input[contains(@id,'_OWNERID_value')]", task["Owner"]); Dialog.GetEnabledElement("//input[contains(@id,'_COMPLETEBYDATE_value')]").SendKeys(task["Date due"]); Dialog.Save(); } }