public void AddOneLevelMenu_Audio() { string filePath = PortalChromeDriver.CreateFolder(@"自定义菜单\添加一级菜单_语音"); MenuPage.AddMenu("一级语音"); MenuPage.AddMenu_Audio(); MobileAndroidDriver.AndroidInitialize(); Mobile_WeChat_Utility.GetToTestAccount(); Mobile_WeChat_Utility.ClearAllRecord(); Mobile_WeChat_Utility.ClickFirstLevelMenu("一级语音"); Thread.Sleep(5 * 1000); MobileAndroidDriver.GetScreenshot(filePath, "添加一级菜单_语音"); Assert.IsTrue(Mobile_WeChat_Utility.GetAudioMessage()); filePath = PortalChromeDriver.CreateFolder(@"自定义菜单\删除已添加的语音"); MenuPage.Delete(); Thread.Sleep(1 * 1000); Assert.IsTrue(Utility.IsAt(MenuElement.Notification, "菜单项不能为空")); MobileAndroidDriver.GetScreenshot(filePath, "删除已添加的语音"); }