public static List <ElementResult> WaitForAll(this ElementResult elementRef, string text) { var ele = new ElementObject { Action = ElementAction.Wait, Text = text }; return(elementRef.ExecuteActions(ele)); }
public static List <ElementResult> RadioBtns(this ElementResult elementRef, bool selected = true) { var ele = new ElementObject { Action = ElementAction.RadioBtn, Text = selected.ToString() }; return(elementRef.ExecuteActions(ele)); }
public static List <ElementResult> GetProperties(this ElementResult elementRef) { var ele = new ElementObject { Action = ElementAction.GetProperty }; return(elementRef.ExecuteActions(ele)); }
public static List <ElementResult> DropdownIndexes(this ElementResult elementRef, int index) { var ele = new ElementObject { Action = ElementAction.DropdownIndex, Text = index.ToString() }; return(elementRef.ExecuteActions(ele)); }
public static List <ElementResult> MultiDropdowns(this ElementResult elementRef, string option) { var ele = new ElementObject { Action = ElementAction.MultiDropdown, Text = option }; return(elementRef.ExecuteActions(ele)); }
public static List <ElementResult> WaitForAll(this ElementResult elementRef, ElementObject ele = null) { if (ele == null) { ele = new ElementObject(); } ele.Action = ElementAction.Wait; return(elementRef.ExecuteActions(ele)); }
public static List <ElementResult> GetTexts(this ElementResult elementRef, Enum ele) { var element = new ElementObject(ele) { Action = ElementAction.GetText }; return(elementRef.ExecuteActions(element)); }
public static List <ElementResult> RadioBtns(this ElementResult elementRef, ElementObject ele = null) { if (ele == null) { ele = new ElementObject(); } ele.Action = ElementAction.RadioBtn; return(elementRef.ExecuteActions(ele)); }
public static List <ElementResult> DropdownIndexes(this ElementResult elementRef, ElementObject ele = null) { if (ele == null) { ele = new ElementObject(); } ele.Action = ElementAction.DropdownIndex; return(elementRef.ExecuteActions(ele)); }
public static List <ElementResult> EnterTexts(this ElementResult elementRef, ElementObject ele = null) { if (ele == null) { ele = new ElementObject(); } ele.Action = ElementAction.EnterText; return(elementRef.ExecuteActions(ele)); }
public static List <ElementResult> GetTexts(this ElementResult elementRef, ElementObject ele = null) { if (ele == null) { ele = new ElementObject(); } ele.Action = ElementAction.GetText; //var ele = new ElementObject { Action = ElementAction.GetText }; return(elementRef.ExecuteActions(ele)); }