Пример #1
0
 public static WatiN.Core.RadioButton check(this WatiN.Core.RadioButton radioButton, bool value)
 {
     if (radioButton != null)
     {
         try
         {
             radioButton.Checked = value;
         }
         catch//(Exception ex)
         {
             //ex.log("in WatiN.Core.RadioButton value::");  // there is an public WatiN exception that occurs after the value is set
         }
     }
     return(radioButton);
 }
Пример #2
0
 public static string value(this WatiN.Core.RadioButton radioButton)
 {
     return((radioButton != null)
                ? radioButton.TextAfter
                : null);
 }
Пример #3
0
 public static string name(this WatiN.Core.RadioButton radioButton)
 {
     return((radioButton != null)
                ? radioButton.attribute("name")
                : "");
 }
Пример #4
0
 public static string id(this WatiN.Core.RadioButton radioButton)
 {
     return((radioButton != null)
                ? radioButton.Id
                : "");
 }
Пример #5
0
 public static WatiN.Core.RadioButton @checked(this WatiN.Core.RadioButton radioButton, bool value)
 {
     return(radioButton.check(value));
 }
Пример #6
0
 public static bool @checked(this WatiN.Core.RadioButton radioButton)
 {
     return(radioButton.Checked);
 }