Skip to content
Newer
Older
100644 30 lines (23 sloc) 1.16 KB
56cb145 @DinisCruz Fixed H2 files for FluentSharp 5.3 namespaces
DinisCruz authored Jul 23, 2013
1 var demosFolder = PublicDI.config.LocalScriptsFolder.pathCombine(@"_Demos\Browser_Automation_IE_Demos");
b797e35 @DinisCruz first commit of O2 Scripts
DinisCruz authored Mar 4, 2012
2 var welcomeMessage = "ie.showMessage(\"Browser Automation / IE Demos\".line().line() + ".line() +
3 "\"Click on one of the demos from the left-hand directory\");";
4
56cb145 @DinisCruz Fixed H2 files for FluentSharp 5.3 namespaces
DinisCruz authored Jul 23, 2013
5 var topPanel = O2Gui.open<Panel>("Browser Automation / IE Demos",1000,600);
b797e35 @DinisCruz first commit of O2 Scripts
DinisCruz authored Mar 4, 2012
6
7 var demoExecutionPanel = topPanel.add_GroupBox("Demo Execution").add_Panel();
56cb145 @DinisCruz Fixed H2 files for FluentSharp 5.3 namespaces
DinisCruz authored Jul 23, 2013
8 var directory = demoExecutionPanel.parent().insert_Left<GroupBox>(200).set_Text("List of Available Demos").add_Directory(demosFolder);//.add_TreeView().showSelection().sort();
9 ascx_IE_ScriptExecution scriptExecution = demoExecutionPanel.add_Control<ascx_IE_ScriptExecution>().buildGui(welcomeMessage);
b797e35 @DinisCruz first commit of O2 Scripts
DinisCruz authored Mar 4, 2012
10
56cb145 @DinisCruz Fixed H2 files for FluentSharp 5.3 namespaces
DinisCruz authored Jul 23, 2013
11 Action<string> showScript =
12 (file) =>
b797e35 @DinisCruz first commit of O2 Scripts
DinisCruz authored Mar 4, 2012
13 {
14 if (file.fileExists())
15 {
16 scriptExecution.script.commandsToExecute.open(file);
17 scriptExecution.script.onCompileExecuteOnce();
18 }
19 };
56cb145 @DinisCruz Fixed H2 files for FluentSharp 5.3 namespaces
DinisCruz authored Jul 23, 2013
20 directory.eDirectoryEvent_DoubleClick += (file) => showScript( file);
b797e35 @DinisCruz first commit of O2 Scripts
DinisCruz authored Mar 4, 2012
21
56cb145 @DinisCruz Fixed H2 files for FluentSharp 5.3 namespaces
DinisCruz authored Jul 23, 2013
22 return "done";
f01fda9 @DinisCruz Major changes and refactoring (to v4.1)
DinisCruz authored Jul 5, 2012
23
56cb145 @DinisCruz Fixed H2 files for FluentSharp 5.3 namespaces
DinisCruz authored Jul 23, 2013
24 //using O2.XRules.Database.Utils
25
26 //O2File:ascx_IE_ScriptExecution.cs
27
28 //using FluentSharp.Watin
29 //O2Ref:FluentSharp.Watin.dll
30 //O2Ref:Watin.Core.dll
Something went wrong with that request. Please try again.