예제 #1
0
        public void TestAutomation()
        {
            _operation.BrowseThisWebSite(ConfigurationManager.AppSettings["website"]);

            //LOL
            for (int i = 0; i < 100; i++)
            {
                _operation.ClickTheButton();
            }
        }
예제 #2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            _operation = PageInitialization.InitializeOperation("chrome");

            _operation.BrowseThisWebSite(ConfigurationManager.AppSettings["website"]);

            _operation.GoToDefaultTab();

            //LOL
            for (int i = 0; i < Int32.Parse(TextBoxClickCount.Text); i++)
            {
                _operation.ClickTheButton();
            }

            _operation.Quit();

            _process.EndSession("drivers".GetValue());
        }