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()); }
public void CleanUp() { _operation.Quit(); _process.EndSession("drivers".GetValue()); }