public static ascx_Simple_Script_Editor script_IE(this WatiN_IE ie) { ie.parentForm().show(); // in case it is hidden var codeToAppend = "//using FluentSharp.Watin".line() + // required refereces to allow easy scripting "//using WatiN.Core ".line() + "//O2Ref:WatiN.Core.dll "; var scriptEditor = ie.script_Me("ie") // set varaible name to 'ie' instead of 'watiN_IE' .code_Append(codeToAppend); return(scriptEditor); }
public ascx_Simple_Script_Editor script_IE() { var code = @"return ie.url(); //O2Ref:FluentSharp.WatiN.dll //using FluentSharp.Watin; //O2Ref:WatiN.Core.dll"; return(ie.script_Me("ie") .set_Code(code)); }