Exemplo n.º 1
0
        public void StartTest(PageDataCollectorStartInfo startInfo)
        {
            this.StartInfo = startInfo;

            CheckUIHostRegistration();

            ieInstance.Silent     = true;
            ieInstance.AddressBar = false;
            ieInstance.MenuBar    = false;
            ieInstance.ToolBar    = 0;
            ieInstance.StatusBar  = false;

            if (startInfo.IsDebug == false)
            {
                long style = Win32API.GetWindowLong(_mainHWND, -20);
                style |= (long)0x80;
                style  = Win32API.SetWindowLong(_mainHWND, -20, style);
                Win32API.MoveWindow(_mainHWND, 10000, 0, 1000, 738, false);
            }
            else
            {
                Win32API.MoveWindow(_mainHWND, 0, 0, 1000, 738, false);
            }

            Win32API.ShowWindow(_mainHWND, Win32API.WindowShowStyle.ShowDefault);

            object oEmpty = String.Empty;
            object oURL   = startInfo.LaunchWithURL;

            ieInstance.Navigate2(ref oURL, ref oEmpty, ref oEmpty, ref oEmpty, ref oEmpty);
        }