private void RunScriptTestAddMeal() { Robot.ClickButton("Start the Restaurant Program (Backend)"); Robot.SetForm("POS-Restaurant Side"); Robot.ClickTabControl("Meal Manager"); Robot.ClickButton("addMeal"); Robot.SetEdit("mealNameBox", "smallmac"); Robot.SetEdit("mealDescriptionBox", "Delicious smallmac!"); Robot.SetEdit("mealPriceBox", "19"); Robot.SetComboBox("mealCategoryBox", "漢堡"); Robot.ClickButton("Browse"); Robot.SelectFileByOpenFileDialog("開啟", new string[] { "1.jpg" }); Robot.ClickButton("mealSave"); Robot.ClickListViewByValue("mealListBox", "大麥克"); Robot.ClickButton("deleteMeal"); Robot.CloseWindow("POS-Restaurant Side"); Robot.SetForm("StartUp"); Robot.ClickButton("Start the Cutomer Program (Frontend)"); Robot.SetForm("POS-Customer Side"); Robot.ClickButton("Next Page"); Robot.ClickButton("smallmac\n19元"); Robot.ClickButton("orderMeal"); }