/// <summary> /// Perform Common action on GngerWebelement return true if iction is perfomed /// </summary> /// <param name="Element"></param> /// <returns></returns> private bool PerformCommonActions(IGingerWebElement Element) { bool performed = true; switch (ElementAction) { case eElementAction.DragDrop: IGingerWebElement TargetElement = null; Element.DragAndDrop("", TargetElement); break; case eElementAction.GetAttrValue: Element.GetAttribute(""); break; case eElementAction.GetHeight: AOVs.Add(new NodeActionOutputValue() { Param = "Height", Value = Element.GetHeight() }); break; case eElementAction.GetItemCount: throw new NotImplementedException("Get Item count is not implementd"); case eElementAction.GetSize: Size s = Element.GetSize(); AOVs.Add(new NodeActionOutputValue() { Param = "Height", Value = s.Height }); AOVs.Add(new NodeActionOutputValue() { Param = "Width", Value = s.Width }); break; case eElementAction.GetStyle: AOVs.Add(new NodeActionOutputValue() { Param = "Style", Value = Element.GetStyle() }); break; case eElementAction.GetWidth: AOVs.Add(new NodeActionOutputValue() { Param = "Width", Value = Element.GetWidth() }); break; case eElementAction.Hover: Element.Hover(); break; case eElementAction.IsEnabled: AOVs.Add(new NodeActionOutputValue() { Param = "Enabled", Value = Element.IsEnabled() }); break; case eElementAction.IsVisible: AOVs.Add(new NodeActionOutputValue() { Param = "Visible", Value = Element.IsVisible() }); break; case eElementAction.MouseRightClick: Element.RightClick(); break; case eElementAction.RunJavaScript: Element.RunJavascript(""); break; case eElementAction.SetFocus: Element.SetFocus(); break; default: performed = false; break; } return(performed); }