示例#1
0
 public static void ForceChange(this Element e)
 {
     //e.DomContainer.Eval("$('#" + e.Id + "').change();");
     try
     {
         e.DomContainer.Eval(string.Format("$({0}).change();", e.GetJavascriptElementReference()));
     }
     catch { }
 }
示例#2
0
文件: Frame.cs 项目: soloradish/WatiN
        private static string GetFrameElementNameOrId(Element frameElement)
        {
            var idOrName = frameElement.Name;

            if (string.IsNullOrEmpty(idOrName))
            {
                idOrName = frameElement.Id;
            }

            if (string.IsNullOrEmpty(idOrName))
            {
                idOrName = "frame_" + frameElement.GetJavascriptElementReference();
                frameElement.SetAttributeValue("Id", idOrName);
            }

            return(idOrName);
        }