public void TestAutomation() { _operation.BrowseThisWebSite(ConfigurationManager.AppSettings["website"]); //LOL for (int i = 0; i < 100; i++) { _operation.ClickTheButton(); } }
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()); }