public void IntiFaceRanking()
 {
     WeChatManagermentPage.GoToCS_Skill_Page();
     FaceRankingPage.ClickFaceRanking();
     Utility.TurnOn();
     WeChatManagermentPage.GoTo_Menu_Page_FaceRanking();
     if (!Utility.IsAt(MenuElement.FaceRankingMenu, "拼颜值"))
     {
         MenuPage.DeleteMenuItem();
         WeChatManagermentPage.GoToCS_Skill_Page();
         FaceRankingPage.ClickFaceRanking();
         string link = FaceRankingPage.CopyLink();
         FaceRankingPage.CopyAlertConfirm();
         WeChatManagermentPage.GoTo_Menu_Page_FaceRanking();
         MenuPage.AddMenu("拼颜值");
         MenuPage.AddMenu_Link_Wait(link);
         WeChatManagermentPage.GoToCS_Skill_Page();
         FaceRankingPage.ClickFaceRanking();
     }
     else
     {
         WeChatManagermentPage.GoToCS_Skill_Page();
         FaceRankingPage.ClickFaceRanking();
     }
 }
 public void IntiFaceRanking()
 {
     try
     {
         PortalChromeDriver.ClickElementPerXpath(DocChatElement.CS_SKills_Weibo);
         FaceRankingPage.ClickFaceRanking();
         Utility.TurnOn();
         WeChatManagermentPage.GoTo_Menu_Page_FaceRanking();
         if (!Utility.IsAt(MenuElement.FaceRankingMenu, "拼颜值"))
         {
             MenuPage.DeleteMenuItem();
             PortalChromeDriver.ClickElementPerXpath(DocChatElement.CS_SKills_Weibo);
             FaceRankingPage.ClickFaceRanking();
             string link = FaceRankingPage.CopyLink();
             FaceRankingPage.CopyAlertConfirm();
             WeChatManagermentPage.GoTo_Menu_Page_FaceRanking();
             MenuPage.AddMenu("拼颜值");
             MenuPage.AddMenu_Link_Wait(link);
             PortalChromeDriver.ClickElementPerXpath(DocChatElement.CS_SKills_Weibo);
             FaceRankingPage.ClickFaceRanking();
         }
         else
         {
             PortalChromeDriver.ClickElementPerXpath(DocChatElement.CS_SKills_Weibo);
             FaceRankingPage.ClickFaceRanking();
         }
     }
     catch (Exception e)
     {
         //PortalChromeDriver.Instance.Navigate().GoToUrl(PortalChromeDriver.BaseProductAddress);
         LoginPage_Weibo.AddWeiboAccount();
         HomePage.ClickWeChatApp("啊_荀");
         PortalChromeDriver.ClickElementPerXpath(DocChatElement.CS_SKills_Weibo);
         FaceRankingPage.ClickFaceRanking();
         Utility.TurnOn();
         WeChatManagermentPage.GoTo_Menu_Page_FaceRanking();
         if (!Utility.IsAt(MenuElement.FaceRankingMenu, "拼颜值"))
         {
             MenuPage.DeleteMenuItem();
             PortalChromeDriver.ClickElementPerXpath(DocChatElement.CS_SKills_Weibo);
             FaceRankingPage.ClickFaceRanking();
             string link = FaceRankingPage.CopyLink();
             FaceRankingPage.CopyAlertConfirm();
             WeChatManagermentPage.GoTo_Menu_Page_FaceRanking();
             MenuPage.AddMenu("拼颜值");
             MenuPage.AddMenu_Link_Wait(link);
             PortalChromeDriver.ClickElementPerXpath(DocChatElement.CS_SKills_Weibo);
             FaceRankingPage.ClickFaceRanking();
         }
         else
         {
             PortalChromeDriver.ClickElementPerXpath(DocChatElement.CS_SKills_Weibo);
             FaceRankingPage.ClickFaceRanking();
         }
     }
 }
 public void IntiSecretRelationship()
 {
     try {
         PortalChromeDriver.ClickElementPerXpath(DocChatElement.CS_SKills_Weibo);
         FaceRankingPage.ClickFaceRanking();
         Utility.TurnOn();
         WeChatManagermentPage.GoTo_Menu_Page_FaceRanking();
         if (!Utility.IsAt(MenuElement.FaceRankingMenu, "关系识别"))
         {
             MenuPage.DeleteMenuItem();
             PortalChromeDriver.ClickElementPerXpath(DocChatElement.CS_SKills_Weibo);
             SecretRelationshipPage.ClickSecretRelationship_Weibo();
             SecretRelationshipPage.TurnOn();
             string link = FaceRankingPage.CopyLink();
             FaceRankingPage.CopyAlertConfirm();
             WeChatManagermentPage.GoTo_Menu_Page_FaceRanking();
             MenuPage.AddMenu("关系识别");
             MenuPage.AddMenu_Link_Wait(link);
             PortalChromeDriver.ClickElementPerXpath(DocChatElement.CS_SKills_Weibo);
             SecretRelationshipPage.ClickSecretRelationship_Weibo();
         }
         else
         {
             PortalChromeDriver.ClickElementPerXpath(DocChatElement.CS_SKills_Weibo);
             SecretRelationshipPage.ClickSecretRelationship_Weibo();
         }
     }
     catch (Exception e)
     {
         LoginPage_Weibo.AddWeiboAccount();
         HomePage.ClickWeChatApp("啊_荀");
         PortalChromeDriver.ClickElementPerXpath(DocChatElement.CS_SKills_Weibo);
         FaceRankingPage.ClickFaceRanking();
         Utility.TurnOn();
         WeChatManagermentPage.GoTo_Menu_Page_FaceRanking();
         if (!Utility.IsAt(MenuElement.FaceRankingMenu, "关系识别"))
         {
             MenuPage.DeleteMenuItem();
             PortalChromeDriver.ClickElementPerXpath(DocChatElement.CS_SKills_Weibo);
             FaceRankingPage.ClickFaceRanking();
             string link = FaceRankingPage.CopyLink();
             FaceRankingPage.CopyAlertConfirm();
             WeChatManagermentPage.GoTo_Menu_Page_FaceRanking();
             MenuPage.AddMenu("拼颜值");
             MenuPage.AddMenu_Link_Wait(link);
             PortalChromeDriver.ClickElementPerXpath(DocChatElement.CS_SKills_Weibo);
             FaceRankingPage.ClickFaceRanking();
         }
         else
         {
             PortalChromeDriver.ClickElementPerXpath(DocChatElement.CS_SKills_Weibo);
             FaceRankingPage.ClickFaceRanking();
         }
     }
 }