ObservableList <Act> IWindowExplorerTreeItem.GetElementActions() { ObservableList <Act> list = new ObservableList <Act>(); ActASCFBrowserElement a2 = new ActASCFBrowserElement(); a2.Description = "Set " + ASCFBrowserElementInfo.Path + " Value"; a2.LocateBy = eLocateBy.ByID; a2.LocateValue = ASCFBrowserElementInfo.Path; a2.ControlAction = ActASCFBrowserElement.eControlAction.SetValue; a2.Value = "ABC"; list.Add(a2); ActASCFBrowserElement a1 = new ActASCFBrowserElement(); a1.Description = "Get Value"; a1.LocateBy = eLocateBy.ByName; a1.LocateValue = ASCFBrowserElementInfo.Path; list.Add(a1); list.Add(new ActASCFBrowserElement() { Description = "Set Value", LocateBy = eLocateBy.ByXPath, LocateValue = ASCFBrowserElementInfo.GetProperty("XPath"), ControlAction = ActASCFBrowserElement.eControlAction.SetValue }); return(list); }
public ActASCFBrowserControlEditPage(ActASCFBrowserElement act) { InitializeComponent(); mAct = act; //TODO: use .Fields App.FillComboFromEnumVal(ControlActionComboBox, mAct.ControlAction); App.ObjFieldBinding(ControlActionComboBox, ComboBox.SelectedValueProperty, mAct, ActASCFBrowserElement.Fields.ControlAction); }
public ActASCFBrowserControlEditPage(ActASCFBrowserElement act) { InitializeComponent(); mAct = act; //TODO: use .Fields GingerCore.General.FillComboFromEnumObj(ControlActionComboBox, mAct.ControlAction); GingerCore.GeneralLib.BindingHandler.ObjFieldBinding(ControlActionComboBox, ComboBox.SelectedValueProperty, mAct, ActASCFBrowserElement.Fields.ControlAction); }
ObservableList <Act> IWindowExplorerTreeItem.GetElementActions() { ObservableList <Act> list = new ObservableList <Act>(); ActASCFBrowserElement BC = new ActASCFBrowserElement(); BC.Description = "Set Active Browser"; BC.LocateBy = eLocateBy.ByName; BC.LocateValue = Path; BC.ControlAction = ActASCFBrowserElement.eControlAction.SetBrowserControl; list.Add(BC); return(list); }
ObservableList <Act> IWindowExplorerTreeItem.GetElementActions() { ObservableList <Act> list = new ObservableList <Act>(); // click link the most common ActASCFBrowserElement a2 = new ActASCFBrowserElement(); a2.Description = "Click Drop Down" + ASCFBrowserElementInfo.Path; a2.LocateBy = eLocateBy.ByID; a2.LocateValue = ASCFBrowserElementInfo.Path; a2.ControlAction = ActASCFBrowserElement.eControlAction.Click; list.Add(a2); return(list); }
ObservableList <Act> IWindowExplorerTreeItem.GetElementActions() { ObservableList <Act> list = new ObservableList <Act>(); ActASCFBrowserElement a2 = new ActASCFBrowserElement(); a2.Description = "Get Label Text " + ASCFBrowserElementInfo.Path; a2.LocateBy = eLocateBy.ByName; a2.LocateValue = ASCFBrowserElementInfo.Path; a2.ControlAction = ActASCFBrowserElement.eControlAction.GetValue; list.Add(a2); ActASCFBrowserElement a3 = new ActASCFBrowserElement(); a3.Description = "Get Label Text " + ASCFBrowserElementInfo.Path; a3.LocateBy = eLocateBy.ByID; a3.LocateValue = ASCFBrowserElementInfo.Path; a3.ControlAction = ActASCFBrowserElement.eControlAction.GetValue; list.Add(a3); return(list); }