public void SetElementProperty(HtmlElement element, string propertyName)
		{
			startSWATFixtureIfNotInOne();
            string newValue = string.Empty;
            if (element.TagName == "TEXTAREA")
            {
                newValue = element.InnerHtml;
            }
            else
            {
                newValue = element.GetType().InvokeMember(propertyName, System.Reflection.BindingFlags.GetProperty, null, element, new object[] { }).ToString();
            }
			_sb.AppendFormat("|SetElementAttribute|{0}|", !string.IsNullOrEmpty(element.Id) ? "id" : "name");
			_sb.AppendFormat("{0}", !string.IsNullOrEmpty(element.Id) ? element.Id : element.Name);
			_sb.AppendFormat("|{0}|{1}|{2}|", propertyName, newValue, element.TagName);
			writeCommand(getStringBuilderValueAndReset());
		}