ToDropDownListWrapper() public method

public ToDropDownListWrapper ( ) : DropDownListWrapper
return DropDownListWrapper
Ejemplo n.º 1
0
 public WaitWrapper SetTo(ControlWrapperBase control, string value)
 {
     var dropDown = control.ToDropDownListWrapper();
     var option = dropDown.OptionWithText(value);
     if (option.Exists().IsTrue)
     {
         return option.Select();
     }
     option = dropDown.OptionWithValue(value);
     if (option.Exists().IsTrue)
     {
         return option.Select();
     }
     throw new AssertionException(String.Format("{0} does not have option '{1}'", control.HowFound, value));
 }
Ejemplo n.º 2
0
 public bool IsMatch(ControlWrapperBase control)
 {
     return control.Element != null && control.ToDropDownListWrapper().Element != null;
 }