GetWindow() public method

Find the first window which belongs to this application and satisfies the critera.
public GetWindow ( White.Core.UIItems.Finders.SearchCriteria searchCriteria, White.Core.Factory.InitializeOption initializeOption ) : White.Core.UIItems.WindowItems.Window
searchCriteria White.Core.UIItems.Finders.SearchCriteria
initializeOption White.Core.Factory.InitializeOption found window would be initialized with this option
return White.Core.UIItems.WindowItems.Window
Example #1
0
 public void SetUp()
 {
     application =
         Application.Launch(
             @"..\..\..\Components\CustomCommands\Tests\WPFTestApplication\bin\debug\White.CustomCommands.WPFTestApplication.exe");
     window = application.GetWindow("Form1");
 }
Example #2
0
        public static void Close()
        {
            Window corkBoardWindow = CorkBoardApp.GetWindow("ViPr Macros - CorkBoard - v. 12.7.2.0");

            corkBoardWindow.Close();

            Thread.Sleep(10000);
        }
        public AuctionSniperDriver(int timeoutMillis)
        {
            application = Application.Attach(ProcessName);

            window = application.GetWindow("Form1");

            Assert.That(window.DisplayState, Is.EqualTo(DisplayState.Restored));
        }
 public override IMainWindow GetMainWindow(Application application)
 {
     var ieWindow = (InternetExplorerWindow)application.GetWindow("TestSilverlightApplication - Windows Internet Explorer");
     var mainWindowAdapter = new ProxyGenerator()
         .CreateInterfaceProxyWithoutTarget<IMainWindow>(new SilverlightAdditionalCallsInterceptor(ieWindow.SilverlightDocument),
                                                         new ForwardIfExistsInterceptor(ieWindow.SilverlightDocument));
     return mainWindowAdapter;
 }
Example #5
0
        public void GivenIAmAtANon_BlackLevel()
        {
            _application = Application.Launch(@"..\..\CcdAddIn.TestHarness\bin\Debug\CcdAddIn.TestHarness.exe");
            _mainWindow = _application.GetWindow("MainWindow");
            _mainWindow.Get<Button>("goToRedLevelButton").Click();

            var firstPrinciple = _mainWindow.Get<ListBox>("principlesListView").Items[0];
            Assert.That(firstPrinciple.Text, Is.StringContaining(Resource.DoNotRepeatYourself));
        }
Example #6
0
        public void GivenIFinishMyRetrospectiveWithASuggestionToAdvanceToTheNextLevel()
        {
            File.Delete(@"..\..\CcdAddIn.TestHarness\bin\Debug\repository");
            File.Copy(@"..\..\repository21perfectRetrospectives", @"..\..\CcdAddIn.TestHarness\bin\Debug\repository");

            _application = Application.Launch(@"..\..\CcdAddIn.TestHarness\bin\Debug\CcdAddIn.TestHarness.exe");
            _mainWindow = _application.GetWindow("MainWindow");
            _mainWindow.Get<Button>("retrospectiveButton").Click();
            _mainWindow.Get<Button>("retrospectiveDoneButton").Click();

            File.Delete("repository");
        }
Example #7
0
        public static void RunNew()
        {
            Console.WriteLine("Launch Corkboard");
            CorkBoardApp = Application.Launch("C:\\Program Files\\SastMacros\\CORKBOARD_PRD\\CorkBoard.exe");
            Console.WriteLine("Corkboard - Start Wait while busy: " + System.DateTime.UtcNow);
            CorkBoardApp.WaitWhileBusy();
            Console.WriteLine("Corkboard - Stop Wait while busy: " + System.DateTime.UtcNow);
            Thread.Sleep(20000);

            CorkBoardApp.GetWindow("CorkBoard").Close();
            Thread.Sleep(2000);
        }
Example #8
0
 public void OpenNetworkWindow()
 {
     Application = Application.Launch(@"C:\Users\Flotschi\git\handle\Handle.WPF\Handle.WPF\bin\Debug\Handle.WPF.exe");
       Assert.IsNotNull(Application);
       MainWindow = Application.GetWindow("Handle");
       Assert.IsNotNull(MainWindow);
       MainWindow.Focus();
       Keyboard.LeaveAllKeys();
       Keyboard.HoldKey(KeyboardInput.SpecialKeys.CONTROL);
       Keyboard.Enter("n");
       NetworkWindow = MainWindow.ModalWindow("Networks");
       Assert.IsNotNull(NetworkWindow);
       Keyboard.LeaveAllKeys();
       NetworkWindow.Close();
       Application.Kill();
 }
Example #9
0
 static void Main(string[] args)
 {
     _wirecast = Application.AttachOrLaunch(new ProcessStartInfo("C:\\Program Files (x86)\\Telestream\\Wirecast\\Wirecast.exe"));
     _cameraPreview = _wirecast.GetWindow("Camera Preview");
     _camPreviewBounds = new RectangleF(Convert.ToInt16(_cameraPreview.Bounds.X), Convert.ToInt16(_cameraPreview.Bounds.Y), Convert.ToInt16(_cameraPreview.Bounds.Width), Convert.ToInt16(_cameraPreview.Bounds.Height));
     _screenCapture = _sc.CaptureScreen();
     Console.WriteLine("Camera Preview isOffScreen: {0}", _cameraPreview.IsOffScreen);
     Console.WriteLine("Camera Preview dimensions: {0}", _cameraPreview.Bounds);
     Console.WriteLine("Got camera preview");
     CropImage(_screenCapture, _camPreviewBounds).Save(@"C:\Users\Dean\Desktop\test.jpeg");
     Console.ReadLine();
 }
Example #10
0
 public void GivenIStartAtTheRedLevel()
 {
     _application = Application.Launch(@"..\..\CcdAddIn.TestHarness\bin\Debug\CcdAddIn.TestHarness.exe");
     _mainWindow = _application.GetWindow("MainWindow");
     _mainWindow.Get<Button>("goToRedLevelButton").Click();
 }
 public void Launch()
 {
     _application = Application.Launch(AppExecPath);
     _mainWindow = _application.GetWindow("Testhing White");
 }
Example #12
0
        public static void LogOnToSystem(string operatorId, string password, string paymentId, string passwordPay, string researchId, string passwordRes)
        {
            Console.WriteLine("Run LogOn to ViPr");

            Window ViPrLoginWindow = ViPr.GetWindow("ViPr - [Login Screen]");

            var operatorPanel = ViPrLoginWindow.Get <White.Core.UIItems.Panel>(SearchCriteria.ByText("Workspace"));
            var elements      = operatorPanel.GetMultiple(SearchCriteria.All);

            operatorPanel.Get(SearchCriteria.ByText("Acceptance Testing")).Click();
            Thread.Sleep(2000);

            foreach (var el in elements)
            {
                switch (el.Id)
                {
                case "17":
                    el.Focus();
                    Thread.Sleep(1000);
                    Keyboard.Instance.Enter(operatorId);
                    Thread.Sleep(1000);
                    break;

                case "16":
                    el.Focus();
                    Thread.Sleep(1000);
                    Keyboard.Instance.Enter(password);
                    Thread.Sleep(1000);
                    break;

                case "13":
                    el.Focus();
                    Thread.Sleep(1000);
                    Keyboard.Instance.Enter(paymentId);
                    Thread.Sleep(1000);
                    break;

                case "14":
                    el.Focus();
                    Thread.Sleep(1000);
                    Keyboard.Instance.Enter(passwordPay);
                    Thread.Sleep(1000);
                    break;

                case "12":
                    el.Focus();
                    Thread.Sleep(1000);
                    Keyboard.Instance.Enter(researchId);
                    Thread.Sleep(1000);
                    break;

                case "11":
                    el.Focus();
                    Thread.Sleep(1000);
                    Keyboard.Instance.Enter(passwordRes);
                    Thread.Sleep(1000);
                    break;

                case "8":
                    el.Focus();
                    Thread.Sleep(1000);
                    Keyboard.Instance.PressSpecialKey(KeyboardInput.SpecialKeys.DOWN);
                    Thread.Sleep(1000);
                    break;

                default:
                    break;
                }
            }

            Console.WriteLine("Click Ok Button");
            operatorPanel.Get <White.Core.UIItems.Button>(SearchCriteria.ByText("Ok")).Click();
            Thread.Sleep(10000);

            bool MainMenuFound = false;

            for (int i = 1; i < 10; i++)
            {
                List <Window> ViPrWindows = ViPr.GetWindows();
                if (ViPrWindows[0].Name != "ViPr - [Main Menu]")
                {
                    Thread.Sleep(2000);
                }
                else
                {
                    MainMenuFound = true;
                    break;
                }
            }

            if (!MainMenuFound)
            {
                ViPrClass.ViPrEmergencyClose();
            }
        }
Example #13
0
 public void FixtureSetup()
 {
     var configuration = new WinFormTestConfiguration(string.Empty);
     application = configuration.Launch();
     window = application.GetWindow("Form1");
 }
Example #14
0
            public void TestCalculators()
            {
                Console.WriteLine("SharepointCalculators");

                //Run Internet Explorer
                White.Core.Application IE = White.Core.Application.Launch("C:\\Program Files\\Internet Explorer\\iexplore.exe");
                Thread.Sleep(30000);

                Window IEWindow = IE.GetWindow("Pages - Your Cigna Life - Microsoft Internet Explorer provided by CIGNA-Link", White.Core.Factory.InitializeOption.NoCache);

                IEWindow.Get <White.Core.UIItems.TextBox>("Address").SetValue("https://centralhub.cigna.com/team/IMPVMT/Calculators/Forms/AllItems.aspx");
                Thread.Sleep(4000);

                IEWindow.Get <White.Core.UIItems.TextBox>("Address").Click();
                UserInputs.PressEnter();
                Thread.Sleep(3000);

                Window IEModalWindow = IEWindow.ModalWindows()[0];

                IEModalWindow.Get <White.Core.UIItems.TextBox>("User name:").SetValue(NunitSettings.InternalId);
                IEModalWindow.Get <White.Core.UIItems.TextBox>("Password:"******"OK").Click();
                Thread.Sleep(5000);

                IEWindow.Focus(DisplayState.Maximized);
                Calculators.RunCalcFromSharepoint(IEWindow, "Advanced Surgical Calculator", "Advanced Surgical Calculator.xls").Focus(DisplayState.Maximized);
                Calculators.RunCalcFromSharepoint(IEWindow, "Anesthesia Calculator INN and OON", "Anesthesia Calculator INN and OON.xls").Focus(DisplayState.Maximized);
                Calculators.RunCalcFromSharepoint(IEWindow, "Anesthesia Calculator INN and OON", "Anesthesia Calculator INN and OON.xls").Focus(DisplayState.Maximized);
                Calculators.RunCalcFromSharepoint(IEWindow, "Dialysis-Epogen Calculator", "Dialysis-Epogen Calculator.xls").Focus(DisplayState.Maximized);
                Calculators.RunCalcFromSharepoint(IEWindow, "Facility Tool", "Facility Tool.xls").Focus(DisplayState.Maximized);
                Calculators.RunCalcFromSharepoint(IEWindow, "Julian Date Converter", "Julian Date Converter.xls").Focus(DisplayState.Maximized);
                Calculators.RunCalcFromSharepoint(IEWindow, "LifeSource Split Calculator", "LifeSource Split Calculator.xls").Focus(DisplayState.Maximized);
                Calculators.RunCalcFromSharepoint(IEWindow, "LPI Calculator", "LPI Calculator.xls").Focus(DisplayState.Maximized);
                Calculators.RunCalcFromSharepoint(IEWindow, "Medicare Primacy Tool", "Medicare Primacy Tool.xls").Focus(DisplayState.Maximized);
                Calculators.RunCalcFromSharepoint(IEWindow, "Other Insurance COB Calculator", "Other Insurance COB Calculator.xls").Focus(DisplayState.Maximized);
                Calculators.RunCalcFromSharepoint(IEWindow, "Other Insurance Primacy Tool", "Other Insurance Primacy Tool.xls").Focus(DisplayState.Maximized);
                Calculators.RunCalcFromSharepoint(IEWindow, "PCL Calculator", "PCL Calculator.xls").Focus(DisplayState.Maximized);
                Calculators.RunCalcFromSharepoint(IEWindow, "Rework (2nd touch)", "Out of Pocket Calculator.xls").Focus(DisplayState.Maximized);
                Calculators.RunCalcFromSharepoint(IEWindow, "Rework (2nd touch)", "Overpayment and Customer Responsibility Calculator.xls").Focus(DisplayState.Maximized);
                Calculators.RunCalcFromSharepoint(IEWindow, "Rework (2nd touch)", "Timely Adjustment Date Calculator.xls").Focus(DisplayState.Maximized);
                Calculators.RunCalcFromSharepoint(IEWindow, "Timely Filing Calculator", "Timely Filing Calculator.xls").Close();


                Console.WriteLine("Stopping AT Services");
                Service.Stop(NunitSettings.ServiceWdName);
                Service.Stop(NunitSettings.ServiceDttName);

                //Check all FocusIns
                List <string> ExpApplications = new List <string>();

                //ExpApplications.Add("\"C:\\Program Files\\Internet Explorer\\iexplore.exe\" SCODEF:6096 CREDAT:79873\"");
                ExpApplications.Add("https://centralhub.cigna.com/team/IMPVMT/Calculators/Forms/AllItems.aspx");
                ExpApplications.Add("SharepointPath:Improvement Team > Calculators > Advanced Surgical Calculator ");
                ExpApplications.Add("Calculator:Advanced Surgical Calculator.xls");
                ExpApplications.Add("SharepointPath:Improvement Team > Calculators > Anesthesia Calculator INN and OON ");
                ExpApplications.Add("Calculator:Anesthesia Calculator INN and OON.xls");
                ExpApplications.Add("SharepointPath:Improvement Team > Calculators > Dialysis-Epogen Calculator ");
                ExpApplications.Add("SharepointPath:Improvement Team > Calculators > Facility Tool ");
                ExpApplications.Add("Calculator:Facility Tool.xls");
                ExpApplications.Add("SharepointPath:Improvement Team > Calculators > Julian Date Converter ");
                ExpApplications.Add("Calculator:Julian Date Converter.xls");
                ExpApplications.Add("SharepointPath:Improvement Team > Calculators > LifeSource Split Calculator ");
                ExpApplications.Add("Calculator:LifeSource Split Calculator.xls");
                ExpApplications.Add("SharepointPath:Improvement Team > Calculators > LPI Calculator ");
                ExpApplications.Add("Calculator:LPI Calculator.xls");
                ExpApplications.Add("SharepointPath:Improvement Team > Calculators > Medicare Primacy Tool ");
                ExpApplications.Add("Calculator:Medicare Primacy Tool.xls");
                ExpApplications.Add("SharepointPath:Improvement Team > Calculators > Other Insurance COB Calculator ");
                ExpApplications.Add("Calculator:Other Insurance COB Calculator.xls");
                ExpApplications.Add("SharepointPath:Improvement Team > Calculators > Other Insurance Primacy Tool ");
                ExpApplications.Add("Calculator:Other Insurance Primacy Tool.xls");
                ExpApplications.Add("SharepointPath:Improvement Team > Calculators > PCL Calculator ");
                ExpApplications.Add("Calculator:PCL Calculator.xls");
                ExpApplications.Add("SharepointPath:Improvement Team > Calculators > Rework (2nd touch) ");
                ExpApplications.Add("Calculator:Out of Pocket Calculator.xls");
                ExpApplications.Add("SharepointPath:Improvement Team > Calculators > Rework (2nd touch) ");
                ExpApplications.Add("Calculator:Overpayment and Customer Responsibility Calculator.xls");
                ExpApplications.Add("SharepointPath:Improvement Team > Calculators > Rework (2nd touch) ");
                ExpApplications.Add("Calculator:Timely Adjustment Date Calculator.xls");
                ExpApplications.Add("SharepointPath:Improvement Team > Calculators > Timely Filing Calculator ");
                ExpApplications.Add("Calculator:Timely Filing Calculator.xls");
                Assert.IsTrue(CheckResults.CheckAllFocusIn(ExpApplications));
            }
 public void GivenIStartTheAddinForTheFirstTime()
 {
     _application = Application.Launch(@"..\..\CcdAddIn.TestHarness\bin\Debug\CcdAddIn.TestHarness.exe");
     _mainWindow = _application.GetWindow("MainWindow");
 }
Example #16
0
 public void Start()
 {
     Console.WriteLine(CoreAppXmlConfiguration.Instance.UIAutomationZeroWindowBugTimeout);
       Application = Application.Launch(@"C:\Users\Flotschi\git\handle\Handle.WPF\Handle.WPF\bin\Debug\Handle.WPF.exe");
       Assert.IsNotNull(Application);
       MainWindow = Application.GetWindow("Handle");
       Assert.IsNotNull(MainWindow);
       MainWindow.Focus();
 }
Example #17
0
 public void WhenRestartingTheApplication()
 {
     _application.Kill();
     _application = Application.Launch(@"..\..\CcdAddIn.TestHarness\bin\Debug\CcdAddIn.TestHarness.exe");
     _mainWindow = _application.GetWindow("MainWindow");
 }
Example #18
0
 public void Start()
 {
     Application = Application.Launch(@"C:\Users\Flotschi\git\handle\Handle.WPF\Handle.WPF\bin\Debug\Handle.WPF.exe");
       Assert.IsNotNull(Application);
       MainWindow = Application.GetWindow("Handle");
       Assert.IsNotNull(MainWindow);
       MainWindow.Focus();
 }
 public static void ClassInitialize(TestContext testContext)
 {
     _app = Application.Launch(@"D:\Dev\PickAWinnerTDD\PickAWinnerTDD.UI\bin\Debug\PickAWinnerTDD.UI.exe");
     _window = _app.GetWindow("Pick A Winner");
 }
        protected override void TestFixtureSetUp()
        {
            recorderApplication = Application.Attach(Process.Start("Recorder.exe"));
            dashboard = recorderApplication.GetWindow("DashBoard", InitializeOption.NoCache);
            ListBox desktopApplications = dashboard.Get<ListBox>("applications");

            ListItem selectedApplication = desktopApplications.SelectedItem;
            if (selectedApplication.Text.Equals(application.Name))
                selectedApplication.DoubleClick();
            else
                desktopApplications.Select(application.Name);

            string text = dashboard.Get<ListBox>("windows").SelectedItemText;
            Assert.AreEqual("Form1", text);

            dashboard.Get<RadioButton>("core").Click();
            dashboard.Get<Button>("record").Click();
            editor = dashboard.Get<MultilineTextBox>("codeEditor");
        }
Example #21
0
        public void CKitLaunchAndSOPSearch()
        {
            //Run Internet Explorer
            White.Core.Application IE = White.Core.Application.Launch("C:\\Program Files\\Internet Explorer\\iexplore.exe");
            Thread.Sleep(15000);

            Window IEWindow = IE.GetWindow("Pages - Your Cigna Life - Microsoft Internet Explorer provided by CIGNA-Link", White.Core.Factory.InitializeOption.NoCache);

            IEWindow.Get <White.Core.UIItems.TextBox>("Address").SetValue("https://cigna.esecurecare.net/");
            Thread.Sleep(6000);

            IEWindow.Get <White.Core.UIItems.TextBox>("Address").Click();
            UserInputs.PressEnter();
            Thread.Sleep(5000);

            Window IEModalWindow = IEWindow.ModalWindows()[0];

            IEModalWindow.Get <White.Core.UIItems.TextBox>("User name:").SetValue(NunitSettings.InternalId.Substring(9));
            IEModalWindow.Get <White.Core.UIItems.TextBox>("Password:"******"OK").Click();
            Thread.Sleep(5000);

            IEWindow.Focus(DisplayState.Restored);

            Console.WriteLine("Looking for Search Button");
            White.Core.UIItems.Button SearchButton = IEWindow.Get <White.Core.UIItems.Button>("Search");
            Console.WriteLine("Search button found. Get Clickable Point");

            Point SearchClickablePoint = SearchButton.Bounds.TopLeft;

            SearchClickablePoint.Offset(-100, 10);

            Mouse.Instance.Click(SearchClickablePoint);

            Console.WriteLine("Enter RNC");
            UserInputs.Enter("RNC");
            UserInputs.PressEnter();
            Thread.Sleep(3000);

            White.Core.UIItems.Hyperlink RNCLink = IEWindow.Get <White.Core.UIItems.Hyperlink>("Reimbursement RNC 501 Processing Reference Guide");
            RNCLink.Click();
            Thread.Sleep(2000);

            Console.WriteLine("Looking for Search Button on RNC page");
            SearchButton = IEWindow.Get <White.Core.UIItems.Button>("Search");

            SearchClickablePoint = SearchButton.Bounds.TopLeft;
            SearchClickablePoint.Offset(-100, 10);

            Mouse.Instance.Click(SearchClickablePoint);

            Console.WriteLine("Enter document directory");
            UserInputs.Enter("document directory");
            UserInputs.PressEnter();
            Thread.Sleep(3000);

            White.Core.UIItems.Hyperlink DocumentDirectory = IEWindow.Get <White.Core.UIItems.Hyperlink>("C KIT Document Directory");
            DocumentDirectory.RightClick();
            Thread.Sleep(2000);

            IEWindow.Popup.ItemBy(SearchCriteria.ByText("Open in New Tab")).Click();
            Thread.Sleep(5000);

            UserInputs.PressHotKey((int)VirtualKeys.Control, (int)VirtualKeys.Tab);
            Thread.Sleep(1000);

            White.Core.UIItems.Hyperlink DirectoryReport = IEWindow.Get <White.Core.UIItems.Hyperlink>("Directory Report.xls");
            DirectoryReport.Click();
            Thread.Sleep(2000);

            Window IEDirectoryReportWindow    = IE.GetWindow("https://cigna.esecurecare.net/ci/fattach/get/93710/ - Microsoft Internet Explorer provided by CIGNA-Link");
            Window ModalDirectoryReportWindow = IEDirectoryReportWindow.ModalWindow("File Download");

            Thread.Sleep(2000);

            Console.WriteLine("File Download window found");

            Console.WriteLine("Press ALT+O");
            UserInputs.HotKey(KeyboardInput.SpecialKeys.ALT, "O");
            Thread.Sleep(9000);

            Console.WriteLine("Kill IE");
            IE.Kill();

            Console.WriteLine("Close Excel");
            var allItem = Desktop.Instance.Windows();

            foreach (var element in allItem)
            {
                if (element.Name.Contains("Microsoft Excel"))
                {
                    element.Focus(DisplayState.Restored);
                    Thread.Sleep(5000);
                    element.Close();
                }
            }

            Thread.Sleep(1000);

            ViPrClass.ExitVipr();

            //Stop services
            Console.WriteLine("Stop Services");
            Service.Stop(NunitSettings.ServiceWdName);
            Service.Stop(NunitSettings.ServiceDttName);

            // Check all FocusIns
            List <string> ExpApplications = new List <string>();

            ExpApplications.Add("https://cigna.esecurecare.net/app/home");
            ExpApplications.Add("https://cigna.esecurecare.net/app/answers/list/search/1/kw/RNC/answers.c$is_healthcare_reform/~any~");
            ExpApplications.Add("C-KIT:Reimbursement RNC 501 Processing Reference Guide");
            ExpApplications.Add("C-KIT:C KIT Document Directory");
            ExpApplications.Add("\"C:\\Program Files\\Microsoft Office XP Standard\\OFFICE11\\EXCEL.EXE\"  /e");

            Assert.IsTrue(CheckResults.CheckAllFocusIn(ExpApplications));
        }
 public static void BeforeTestRun()
 {
     app = Application.Launch("calc");
     window = app.GetWindow("Calculator");
     readout = (Label)window.Get(SearchCriteria.ByAutomationId(IDC_READOUT));
 }
 public void Setup()
 {
     ConfigureWhiteTimeouts();
     _new_item = Guid.NewGuid().ToString();
     _app = Application.Launch("FastGTD.exe");
     Window window = _app.GetWindow("FastGTD");
     Tab tab = window.Tabs[0];
     ITabPage inbox_page = tab.Pages.Find(x => x.Name == "InBox");
     _inbox = new TabPageWithListBoxHelper(inbox_page, window);
     ITabPage actions_page = tab.Pages.Find(x => x.Name == "Actions");
     _actions = new TabPageWithListBoxHelper(actions_page, window);
 }
 public void GivenIAmAtTheBlackLevel()
 {
     _application = Application.Launch(@"..\..\CcdAddIn.TestHarness\bin\Debug\CcdAddIn.TestHarness.exe");
     _mainWindow = _application.GetWindow("MainWindow");
 }
 public static void ClassInitialize(TestContext testContext)
 {
     _app = Application.Launch(@"D:\Dev\PickAWinnerTDD\PickAWinnerTDD.UI\bin\Debug\PickAWinnerTDD.UI.exe");
     _window = _app.GetWindow("Pick A Winner");
     _window.Get<Button>(SearchCriteria.ByText("Admin")).Click();
 }
 public WindowsCalculatorWhite()
 {
     applicationField = Application.Launch("calc.exe");
     windowField = applicationField.GetWindow("Calculator", InitializeOption.NoCache);
 }
Example #27
0
 public override IMainWindow GetMainWindow(Application application)
 {
     var window = application.GetWindow(SearchCriteria.ByFramework(framework.FrameworkId).AndByText(MainWindowTitle()), InitializeOption.NoCache);
     var mainWindowAdapter = new ProxyGenerator().CreateInterfaceProxyWithoutTarget<IMainWindow>(new ForwardIfExistsInterceptor(window));
     return mainWindowAdapter;
 }