public static ElementResult RadioBtn(this ElementResult elementRef, bool selected = true) { var ele = new ElementObject { Action = ElementAction.RadioBtn, Text = selected.ToString() }; return(elementRef.ExecuteAction(ele)); }
public static ElementResult DropdownIndex(this ElementResult elementRef, int index) { var ele = new ElementObject { Action = ElementAction.DropdownIndex, Text = index.ToString() }; return(elementRef.ExecuteAction(ele)); }
public static ElementResult MultiDropdown(this ElementResult elementRef, string option) { var ele = new ElementObject { Action = ElementAction.MultiDropdown, Text = option }; return(elementRef.ExecuteAction(ele)); }
public static ElementResult EnterText(this ElementResult elementRef, string text) { var ele = new ElementObject { Action = ElementAction.EnterText, Text = text }; return(elementRef.ExecuteAction(ele)); }
public static ElementResult GetProperty(this ElementResult elementRef) { var ele = new ElementObject { Action = ElementAction.GetProperty }; return(elementRef.ExecuteAction(ele)); }
public static ElementResult GetAttribute(this ElementResult elementRef, string attribute) { var ele = new ElementObject() { Text = attribute, Action = ElementAction.GetAttribute }; return(elementRef.ExecuteAction(ele)); }
public static ElementResult GetAttribute(this ElementResult elementRef, ElementObject ele = null) { if (ele == null) { ele = new ElementObject(); } ele.Action = ElementAction.GetAttribute; return(elementRef.ExecuteAction(ele)); }
public static ElementResult GetDropdown(this ElementResult elementRef, Enum ele) { var element = new ElementObject(ele) { Action = ElementAction.GetDropdown }; return(elementRef.ExecuteAction(element)); }
public static ElementResult RadioBtn(this ElementResult elementRef, ElementObject ele = null) { if (ele == null) { ele = new ElementObject(); } ele.Action = ElementAction.RadioBtn; return(elementRef.ExecuteAction(ele)); }
public static ElementResult MultiDropdown(this ElementResult elementRef, ElementObject ele = null) { if (ele == null) { ele = new ElementObject(); } ele.Action = ElementAction.MultiDropdown; return(elementRef.ExecuteAction(ele)); }
public static ElementResult EnterText(this ElementResult elementRef, ElementObject ele = null) { if (ele == null) { ele = new ElementObject(); } ele.Action = ElementAction.EnterText; return(elementRef.ExecuteAction(ele)); }
public static ElementResult WaitFor(this ElementResult elementRef, Enum ele) { var element = new ElementObject(ele) { Action = ElementAction.Wait }; return(elementRef.ExecuteAction(element)); }
public static ElementResult WaitFor(this ElementResult elementRef, ElementObject ele = null) { if (ele == null) { ele = new ElementObject(); } ele.Action = ElementAction.Wait; return(elementRef.ExecuteAction(ele)); }
public static ElementResult GetCheckbox(this ElementResult elementRef, ElementObject ele = null) { if (ele == null) { ele = new ElementObject { Action = ElementAction.GetCheckbox }; } return(elementRef.ExecuteAction(ele)); }
public static ElementResult DropdownIndex(this ElementResult elementRef, ElementObject ele = null) { ele.Action = ElementAction.DropdownIndex; return(elementRef.ExecuteAction(ele)); }