Changeset 1698
- Timestamp:
- 07/16/08 15:55:52 (5 months ago)
- Files:
-
- honeyclient/branches/exp/bhenderson-browser_automation/BrowserAutomation.suo (modified) (previous)
- honeyclient/branches/exp/bhenderson-browser_automation/BrowserAutomation/Automation.cs (modified) (2 diffs)
- honeyclient/branches/exp/bhenderson-browser_automation/BrowserAutomation/BrowserAutomation.csproj (modified) (2 diffs)
- honeyclient/branches/exp/bhenderson-browser_automation/BrowserAutomation/IE.cs (modified) (2 diffs)
- honeyclient/branches/exp/bhenderson-browser_automation/BrowserAutomation/bin/Debug/BrowserAutomation.exe (modified) (previous)
- honeyclient/branches/exp/bhenderson-browser_automation/BrowserAutomation/bin/Debug/BrowserAutomation.pdb (modified) (previous)
- honeyclient/branches/exp/bhenderson-browser_automation/BrowserAutomation/bin/Debug/Interop.SHDocVw.dll (modified) (previous)
- honeyclient/branches/exp/bhenderson-browser_automation/BrowserAutomation/obj/Debug/BrowserAutomation.csproj.FileListAbsolute.txt (modified) (1 diff)
- honeyclient/branches/exp/bhenderson-browser_automation/BrowserAutomation/obj/Debug/BrowserAutomation.csproj.ResolveComReference.cache (modified) (previous)
- honeyclient/branches/exp/bhenderson-browser_automation/BrowserAutomation/obj/Debug/BrowserAutomation.exe (modified) (previous)
- honeyclient/branches/exp/bhenderson-browser_automation/BrowserAutomation/obj/Debug/BrowserAutomation.pdb (modified) (previous)
- honeyclient/branches/exp/bhenderson-browser_automation/BrowserAutomation/obj/Debug/Interop.SHDocVw.dll (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
honeyclient/branches/exp/bhenderson-browser_automation/BrowserAutomation/Automation.cs
r1675 r1698 13 13 { 14 14 private static IE ie; 15 private static Firefox firefox; 15 16 16 17 /// <summary> … … 28 29 ie = new IE(args[1]); 29 30 } 31 if (args[0].Equals("firefox")) 32 { 33 firefox = new Firefox(args[1]); 34 } 30 35 } 31 36 } honeyclient/branches/exp/bhenderson-browser_automation/BrowserAutomation/BrowserAutomation.csproj
r1675 r1698 46 46 </ItemGroup> 47 47 <ItemGroup> 48 <Compile Include="Firefox.cs" /> 48 49 <Compile Include="IE.cs" /> 49 50 <Compile Include="Automation.cs" /> … … 51 52 </ItemGroup> 52 53 <ItemGroup> 54 <COMReference Include="MOZILLACONTROLLib"> 55 <Guid>{1339B53E-3453-11D2-93B9-000000000000}</Guid> 56 <VersionMajor>1</VersionMajor> 57 <VersionMinor>0</VersionMinor> 58 <Lcid>0</Lcid> 59 <WrapperTool>tlbimp</WrapperTool> 60 <Isolated>False</Isolated> 61 </COMReference> 53 62 <COMReference Include="SHDocVw"> 54 63 <Guid>{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}</Guid> honeyclient/branches/exp/bhenderson-browser_automation/BrowserAutomation/IE.cs
r1675 r1698 22 22 private int navigateCounter; 23 23 private bool completed; 24 private DateTime startTime; 25 private TimeSpan duration; 24 26 25 27 /// <summary> … … 55 57 internetExplorer.Visible = true; 56 58 internetExplorer.Navigate(url, ref o, ref o, ref o, ref o); 57 url = null; 59 url = null; 60 startTime = DateTime.Now; 58 61 } 59 62 60 if (completed && (unfinishedDownloads == 0) && !internetExplorer.Busy) 63 duration = DateTime.Now - startTime; 64 65 if(duration.Seconds >= 30) 61 66 { 62 Thread.Sleep(2000); 67 ieThread.Abort(); 68 } 69 else 70 { 63 71 if (completed && (unfinishedDownloads == 0) && !internetExplorer.Busy) 64 72 { 65 Thread.Sleep(10000); 66 internetExplorer.Quit(); 67 ieThread.Abort(); 73 Thread.Sleep(2000); 74 if (completed && (unfinishedDownloads == 0) && !internetExplorer.Busy) 75 { 76 Thread.Sleep(10000); 77 internetExplorer.Quit(); 78 ieThread.Abort(); 79 } 68 80 } 69 81 } honeyclient/branches/exp/bhenderson-browser_automation/BrowserAutomation/obj/Debug/BrowserAutomation.csproj.FileListAbsolute.txt
r1675 r1698 7 7 D:\Work\HoneyClient\BrowserAutomation\BrowserAutomation\obj\Debug\BrowserAutomation.exe 8 8 D:\Work\HoneyClient\BrowserAutomation\BrowserAutomation\obj\Debug\BrowserAutomation.pdb 9 D:\Work\HoneyClient\BrowserAutomation\BrowserAutomation\obj\Debug\Interop.MOZILLACONTROLLib.dll 10 D:\Work\HoneyClient\BrowserAutomation\BrowserAutomation\bin\Debug\Interop.MOZILLACONTROLLib.dll
