예제 #1
0
        public static void enterValue(Ranorex.InputTag element, string strText, string strContrlName)
        {
            try
            {
                element.EnsureVisible();
                element.Focus();
                element.TagValue = strText;
                Delay.Seconds(0.5);
                Report.Info(strText + " is entered in " + strContrlName);
            }

            catch (Exception ex)
            {
                Report.Failure(strText + " is not entered in " + strContrlName + ex.Message);
            }
        }
예제 #2
0
 public static void selectRadiobutton(Ranorex.InputTag element, string strValue, string ControlName)
 {
     try
     {
         element.EnsureVisible();
         element.Focus();
         Mouse.MoveTo(element);
         Delay.Seconds(1);
         element.Click();
         Report.Info(strValue + " is selected in " + ControlName);
         Delay.Milliseconds(300);
     }
     catch (Exception ex)
     {
         Report.Screenshot();
         Report.Failure(strValue + " is not selected due to " + ex.Message);
     }
 }