public void ShareMusicGameResult(MusicRhythmRunningInfo data) { IconSelectWindow win = PopupManager.ShowWindow <IconSelectWindow>(Constants.IconSelectWindowPath); win.clickCallback = (m) => { ScreenShotUtil.ScreenShot(ScreenShotType.MusicGame, (imageUrl) => { ScreenShotCallback(m, imageUrl, ShareTypePB.ShareClothes); }, data); }; win.SetData( I18NManager.Get("Common_ShareTo"), IconType.WeChatFriend, IconType.WeChatFriendCircle, IconType.QQFriend, IconType.SinaWeibo ); }
public void ShareCloth(int backId, int clothId) { IconSelectWindow win = PopupManager.ShowWindow <IconSelectWindow>(Constants.IconSelectWindowPath); win.clickCallback = (m) => { ScreenShotUtil.ScreenShot(ScreenShotType.Clothes, (imageUrl) => { ScreenShotCallback(m, imageUrl, ShareTypePB.ShareClothes); }, backId, clothId); }; win.SetData( I18NManager.Get("Common_ShareTo"), IconType.WeChatFriend, IconType.WeChatFriendCircle, IconType.QQFriend, IconType.SinaWeibo ); }
public void CanvasChartTest() { // Log in logInPage.OpenLoginPage(); logInPage.VerifyLoginPage(); logInPage.Login("myUser", "myPassword"); // Verify main page mainPage.VerifyMainPage(); // Show expenses chart and take screenshots driver.FindElement(By.Id("showExpensesChart")).Click(); var canvas = driver.FindElement(By.Id("canvas")); ScreenShotUtil.TakeScreenShot("Expenses1718", appsettings, driver); driver.FindElement(By.Id("addDataset")).Click(); ScreenShotUtil.TakeScreenShot("Expenses1719", appsettings, driver); }
public void ShareDrawCard(DrawCardResultVo drawCardResultVo) { IconSelectWindow win = PopupManager.ShowWindow <IconSelectWindow>(Constants.IconSelectWindowPath); win.clickCallback = (m) => { ScreenShotUtil.ScreenShot(ScreenShotType.DrawCard, (imageUrl) => { ScreenShotCallback(m, imageUrl, ShareTypePB.ShareDraw); }, drawCardResultVo); }; win.SetData( I18NManager.Get("Common_ShareTo"), IconType.WeChatFriend, IconType.WeChatFriendCircle, IconType.QQFriend, IconType.SinaWeibo ); }
public void TearDown() { ScreenShotUtil.TakeScreenShot(TestContext.CurrentContext.Test.Name, appsettings, driver); driver.Close(); driver.Quit(); }