/// <summary>
 /// Click Weight Tracker tile
 /// </summary>
 public void NavigateToTracker(string trackerName)
 {
     Thread.Sleep(4000);
     AppiumKeywords.Tap("Page_TrackerHome", "trackertile", trackerName);
 }
 /// <summary>
 /// Click No Thanks on S Health Pop up
 /// </summary>
 private void DisableAppleHealthConnection()
 {
     AppiumKeywords.Tap(pageName, "ahealth_no");
 }
 /// <summary>
 /// This method closes the Overlays
 /// </summary>
 private void CloseHelpPopup()
 {
     AppiumKeywords.Tap(pageName, "helppopup_close", pckgname);
 }
 /// <summary>
 /// This method click on the back button on the top of the screen
 /// </summary>
 public void TabBackButton()
 {
     AppiumKeywords.Tap(pageName, "backbtn");
 }
 /// <summary>
 /// Click No Thanks on S Health Pop up
 /// </summary>
 private void DisableSHealthConnection()
 {
     AppiumKeywords.Tap(pageName, "shealth_nothnks", pckgname);
 }
 /// <summary>
 /// Click Quick Tracker Menu icon in additional menu
 /// </summary>
 public void TapQuickTrackerMenu()
 {
     AppiumKeywords.Tap(pageName, "quicktrackermenuicon");
 }
 /// <summary>
 /// This method taps on the Settings footer menu
 /// </summary>
 public void TapSettingsIcon()
 {
     AppiumKeywords.Tap(pageName, "footersettings");
 }
示例#8
0
 /// <summary>
 /// Click on logout option in settings page
 /// </summary>
 public void ClickLogout()
 {
     AppiumKeywords.Tap(pageName, "logoutoptn", pckgname);
     Thread.Sleep(3000);
 }
 private void TapTrackerViewAllButton()
 {
     AppiumKeywords.Tap(pageName, "trackerviewall_link", pckgname);
 }
示例#10
0
 private void TapToChallenges()
 {
     AppiumKeywords.Tap(pageName, "challengeslbl");
 }
示例#11
0
 private void TapQuickTracker()
 {
     Thread.Sleep(2000);
     AppiumKeywords.Tap(pageName, "quicktracker");
 }
 private void TapStartLink()
 {
     AppiumKeywords.Tap("Common", "haicon");
 }
        private List <string[]> FillHAModules()
        {
            List <string[]> result        = new List <string[]>();
            List <string[]> haelementdata = new List <string[]>();

            haelementdata = CSVReaderDataTable.GetCSVData("CommonContent", pageName, "hamoduletitle");
            for (int i = 0; i < haelementdata.Count; i++)
            {
                string elementname        = haelementdata.ElementAt(i)[2];
                string elementlocatorname = haelementdata.ElementAt(i)[3];
                string expectedtext       = haelementdata.ElementAt(i)[4];
                string actualtext         = AppiumKeywords.GetText(pageName, elementlocatorname);
                bool   textmatch          = actualtext.Contains(expectedtext);
                string msg = "Element: " + elementname + "Expected: " + expectedtext + "Actual: " + actualtext;
                result.Add(new string[] { msg, textmatch.ToString() });

                System.Threading.Thread.Sleep(3000);

                switch (i)
                {
                case 0:
                    FillYourInfoModule();
                    break;

                case 1:
                    VerifySanphotReport();
                    break;

                case 2:
                    FillAboutYouModule();
                    break;

                case 3:
                    FillYourVitalModule();
                    break;

                case 4:
                    FillDietModule();
                    break;

                case 5:
                    FillTobaccoModule();
                    break;

                case 6:
                    FillHistoryModule();
                    break;

                case 7:
                    FillActivityModule();
                    break;

                case 8:
                    FillEmotionalHealthModule();
                    break;

                case 9:
                    FillAtWorkModule();
                    break;
                }
                System.Threading.Thread.Sleep(2000);
            }

            result.AddRange(CompleteHA());

            return(result);
        }
 public void TapCoachIcon()
 {
     //TapFooterMenu();
     AppiumKeywords.Tap(pageName, "footercoachicon");
 }
 /// <summary>
 /// This method closes the Overlays
 /// </summary>
 public void CloseHelpPopup()
 {
     Thread.Sleep(2000);
     AppiumKeywords.Tap(pageName, "helppopup_close", pckgname);
 }
        public Boolean VerifyEstrmSectionPresent()
        {
            bool status = AppiumKeywords.IsElementPresent(pageName, "estrmsection", pckgname);

            return(status);
        }
 /// <summary>
 /// Click mobile footer additional menu icon
 /// </summary>
 public void TapFooterMenu()
 {
     AppiumKeywords.Tap(pageName, "footermenuicon", pckgname);
 }
 /// <summary>
 /// This method closes the welcome overlay
 /// </summary>
 private void CloseWelcomePopup()
 {
     AppiumKeywords.Tap(pageName, "welcomepageclose", pckgname);
 }
 /// <summary>
 /// Click My Profile icon in additional menu
 /// </summary>
 public void TapMyProfileMenu()
 {
     TapFooterMenu();
     AppiumKeywords.Tap(pageName, "myprofilemenuicon");
 }
 /// <summary>
 /// This method taps Yes button in notification popup
 /// </summary>
 private void EnableNotification()
 {
     AppiumKeywords.Tap(pageName, "enablenotification");
 }
 /// <summary>
 /// This method taps on the Settings footer menu
 /// </summary>
 public void TapHAIcon()
 {
     AppiumKeywords.Tap(pageName, "haicon");
 }
 /// <summary>
 /// Click Skip Intro button
 /// </summary>
 public void ClickSkipIntro()
 {
     AppiumKeywords.Tap(pageName, "skipintrolnk", pckgname);
     Thread.Sleep(2000);
 }