示例#1
0
        public static ElementResult RadioBtn(this ElementResult elementRef, bool selected = true)
        {
            var ele = new ElementObject {
                Action = ElementAction.RadioBtn, Text = selected.ToString()
            };

            return(elementRef.ExecuteAction(ele));
        }
示例#2
0
        public static ElementResult DropdownIndex(this ElementResult elementRef, int index)
        {
            var ele = new ElementObject {
                Action = ElementAction.DropdownIndex, Text = index.ToString()
            };

            return(elementRef.ExecuteAction(ele));
        }
示例#3
0
        public static ElementResult MultiDropdown(this ElementResult elementRef, string option)
        {
            var ele = new ElementObject {
                Action = ElementAction.MultiDropdown, Text = option
            };

            return(elementRef.ExecuteAction(ele));
        }
示例#4
0
        public static ElementResult EnterText(this ElementResult elementRef, string text)
        {
            var ele = new ElementObject {
                Action = ElementAction.EnterText, Text = text
            };

            return(elementRef.ExecuteAction(ele));
        }
示例#5
0
        public static ElementResult GetProperty(this ElementResult elementRef)
        {
            var ele = new ElementObject {
                Action = ElementAction.GetProperty
            };

            return(elementRef.ExecuteAction(ele));
        }
示例#6
0
        public static ElementResult GetAttribute(this ElementResult elementRef, string attribute)
        {
            var ele = new ElementObject()
            {
                Text = attribute, Action = ElementAction.GetAttribute
            };

            return(elementRef.ExecuteAction(ele));
        }
示例#7
0
 public static ElementResult GetAttribute(this ElementResult elementRef, ElementObject ele = null)
 {
     if (ele == null)
     {
         ele = new ElementObject();
     }
     ele.Action = ElementAction.GetAttribute;
     return(elementRef.ExecuteAction(ele));
 }
示例#8
0
        public static ElementResult GetDropdown(this ElementResult elementRef, Enum ele)
        {
            var element = new ElementObject(ele)
            {
                Action = ElementAction.GetDropdown
            };

            return(elementRef.ExecuteAction(element));
        }
示例#9
0
 public static ElementResult RadioBtn(this ElementResult elementRef, ElementObject ele = null)
 {
     if (ele == null)
     {
         ele = new ElementObject();
     }
     ele.Action = ElementAction.RadioBtn;
     return(elementRef.ExecuteAction(ele));
 }
示例#10
0
 public static ElementResult MultiDropdown(this ElementResult elementRef, ElementObject ele = null)
 {
     if (ele == null)
     {
         ele = new ElementObject();
     }
     ele.Action = ElementAction.MultiDropdown;
     return(elementRef.ExecuteAction(ele));
 }
示例#11
0
 public static ElementResult EnterText(this ElementResult elementRef, ElementObject ele = null)
 {
     if (ele == null)
     {
         ele = new ElementObject();
     }
     ele.Action = ElementAction.EnterText;
     return(elementRef.ExecuteAction(ele));
 }
示例#12
0
        public static ElementResult WaitFor(this ElementResult elementRef, Enum ele)
        {
            var element = new ElementObject(ele)
            {
                Action = ElementAction.Wait
            };

            return(elementRef.ExecuteAction(element));
        }
示例#13
0
 public static ElementResult WaitFor(this ElementResult elementRef, ElementObject ele = null)
 {
     if (ele == null)
     {
         ele = new ElementObject();
     }
     ele.Action = ElementAction.Wait;
     return(elementRef.ExecuteAction(ele));
 }
示例#14
0
 public static ElementResult GetCheckbox(this ElementResult elementRef, ElementObject ele = null)
 {
     if (ele == null)
     {
         ele = new ElementObject {
             Action = ElementAction.GetCheckbox
         };
     }
     return(elementRef.ExecuteAction(ele));
 }
示例#15
0
 public static ElementResult DropdownIndex(this ElementResult elementRef, ElementObject ele = null)
 {
     ele.Action = ElementAction.DropdownIndex;
     return(elementRef.ExecuteAction(ele));
 }