Ejemplo n.º 1
0
        /// <summary>
        /// Method to update tracker
        /// </summary>
        public void UpdateWeightTracker(List <string[]> trackerdata)
        {
            string weightvalue = trackerdata.ElementAt(0)[4];

            Thread.Sleep(3000);
            //Enter weight
            AppiumKeywords.SetText(pageName, "weight_inputbx", weightvalue, pckgname);
            //Tap update button
            AppiumKeywords.Tap(pageName, "trackerupdate_btn", pckgname);
            //Thread.Sleep(2000);
        }
        /// <summary>
        /// Method to update tracker
        /// </summary>
        public void UpdateBPTracker(List <string[]> trackerdata)
        {
            systolic  = Convert.ToInt32(trackerdata.ElementAt(0)[4]);
            diastolic = Convert.ToInt32(trackerdata.ElementAt(1)[4]);

            //Enter Systolic
            AppiumKeywords.SetText(pageName, "sys_inputbx", systolic + "\n", pckgname);

            //Enter Diastolic
            AppiumKeywords.SetText(pageName, "dia_inputbx", diastolic + "\n", pckgname);

            //Tap update button
            AppiumKeywords.Tap(pageName, "trackerupdate_btn", pckgname);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// This method sets the value of password in password field
 /// </summary>
 /// <param name="password">Password is read from LoginCredential.CSV file</param>
 private void SetPassword(string password)
 {
     AppiumKeywords.SetText(pageName, "passwordtxt", password, pckgname);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// This method sets the value of username in User Name field
 /// </summary>
 /// <param name="username">User Name is read from LoginCredential.CSV file</param>
 private void SetUsername(string username)
 {
     AppiumKeywords.SetText(pageName, "usernametxt", username, pckgname);
 }
 public void InputText()
 {
     AppiumKeywords.SetText(pageName, "messagebox", "Hi Coach", pckgname);
 }