Example #1
0
        private void ApplicationStartUp(object sender, StartupEventArgs e)
        {
            var spellChecker = new SpellCheckerService(new NetspellSpellChecker());

            var notepadViewModel = new NotepadViewModel(spellChecker);

            var notepadView = new NotepadView(notepadViewModel);

            notepadView.Show();
        }
Example #2
0
        public void TypeSmthAndAssert()
        {
            var appCapabilities = new DesiredCapabilities();

            appCapabilities.SetCapability("app", NotepadAppId);

            _driver = new WindowsDriver <WindowsElement>(new Uri(WinAppDriverUrl), appCapabilities);
            _driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(5));
            _driver.Manage().Window.Maximize();

            _notepad = new NotepadView(_driver);
            _notepad.TypeAndChangeFont();
            Assert.AreEqual("bla-bla-bla, Radinovo 2018", _driver.FindElementByClassName("Edit").Text);
        }