Permalink
Browse files

couple changes to Util - Chrome Browser with REPL.h2

  • Loading branch information...
1 parent 46647ba commit c435b5a8fb3c5732fd0da8442b555076420f16ad @DinisCruz DinisCruz committed Jun 21, 2013
@@ -104,14 +104,7 @@ public static Process getProcessWithParentHandle(this Process process)
"Failed to find process with id: {0} name: {0}".error(process.Id, process.ProcessName);
}
return null;
- }
-
-
- public static API_Chrome_Hijack createTestGui(this API_Chrome_Hijack chromeHijack)
- {
- var winFormsUI = "Util - O2 REPL Editor using winFormUI .. ".winFormsUI(800,600);
- return chromeHijack;
- }
+ }
}
}
@@ -1,14 +1,16 @@
//var topPanel = panel.clear().add_Panel();
-var topPanel = "Util - Chrome with REPL".popupWindow(2000,600);
+var topPanel = "Util - Chrome with REPL".popupWindow(1200,600);
var replPanel = topPanel.add_GroupBox("C# Repl").add_Panel();
-var chromePanel = topPanel.insert_Right(replPanel.width() /3 , "Chrome");
-var chromeDriver = chromePanel.parent().insert_Below("Chrome WebDriver");
+var chromePanel = topPanel.insert_Right(replPanel.width() / 2 , "Chrome");
+var chromeDriver = chromePanel.parent().insert_Below(150,"Chrome WebDriver");
var firstScript =
@"chromeDriver.open(""http://www.google.com"");
-var field = chromeDriver.FindElement(By.Name(""q""));
-field.SendKeys(""O2 Platform"");
+chromeDriver.FindElement(By.Name(""q""))
+ .SendKeys(""O2 Platform"");
+chromeDriver.FindElement(By.Name(""btnG""))
+ .Click();
return ""done"";
//using OpenQA.Selenium;
@@ -1,27 +1,23 @@
-<?xml version="1.0"?>
-<H2>
- <SourceCode>open.logViewer();
-O2ConfigSettings.CheckForTempDirMaxSizeCheck = false;
-O2Setup.extractEmbededConfigZips();
-
-var assembly = "ascx_GraphWithInspector.cs.o2".local().compile();
-assembly.type("ascx_GraphWithInspector").invokeStatic("runControl");
-
+open.logViewer();
+O2ConfigSettings.CheckForTempDirMaxSizeCheck = false;
+O2Setup.extractEmbededConfigZips();
+
+var assembly = "ascx_GraphWithInspector.cs.o2".local().compile();
+assembly.type("ascx_GraphWithInspector").invokeStatic("runControl");
+
//ascx_GraphWithInspector.runControl();
-//O2File:ascx_GraphWithInspector.cs.o2
-//O2Embed:ICSharpCode.AvalonEdit.dll
-//O2Embed:FluentSharp.WPF.dll
-//O2Embed:O2_External_IE.dll
-//O2Embed:GraphSharp.Controls.dll
-//O2Embed:WPFExtensions.dll
-//O2Emded:GraphSharp.dll
-//O2Package:PoC - View Graph.h2,GraphLayout_WPF_ExtensionMethods.cs,GraphSharp_ExtensionMethods.cs,GraphFactory.cs,ElementHost_ExtensionMethods.cs
-//O2Package:VerticesAndEdges_ExtensionMethods.cs,ascx_GraphWithInspector.cs.o2
-
-//O2Ref:PresentationCore.dll
-//O2Ref:PresentationFramework.dll
-//O2Ref:WindowsBase.dll
-//O2Ref:System.Xaml.dll
-</SourceCode>
-</H2>
+//O2File:ascx_GraphWithInspector.cs.o2
+//O2Embed:ICSharpCode.AvalonEdit.dll
+//O2Embed:FluentSharp.WPF.dll
+//O2Embed:O2_External_IE.dll
+//O2Embed:GraphSharp.Controls.dll
+//O2Embed:WPFExtensions.dll
+//O2Embed:GraphSharp.dll
+//O2Package:PoC - View Graph.h2,GraphLayout_WPF_ExtensionMethods.cs,GraphSharp_ExtensionMethods.cs,GraphFactory.cs,ElementHost_ExtensionMethods.cs
+//O2Package:VerticesAndEdges_ExtensionMethods.cs,ascx_GraphWithInspector.cs.o2
+
+//O2Ref:PresentationCore.dll
+//O2Ref:PresentationFramework.dll
+//O2Ref:WindowsBase.dll
+//O2Ref:System.Xaml.dll

0 comments on commit c435b5a

Please sign in to comment.