webq

One Bug of WatiN?

With WatiN,How to find a radio input button on the page?
such as the line of HTML:
<input type="radio" id="rdb_1" name="rdb" value="Value_1">
How to get it?
1) ie.RadioButton(Find.ById("rdb_1"))
2) ie.RadioButton(Find.ByName("rdb"))
3) ie.RadioButton(Find.ByValue("Value_1"))
neither of  these methods works well.
Now I can only get it with this:
ie.RadioButtons[index]

Why do them?
May I get some suggestions? 

分类:

技术点:

相关文章:

  • 2021-08-08
  • 2021-12-15
  • 2021-08-31
  • 2021-10-09
  • 2022-12-23
  • 2021-05-25
猜你喜欢
  • 2021-08-08
  • 2021-06-07
  • 2021-12-22
  • 2021-05-19
  • 2022-12-23
  • 2021-08-08
  • 2021-08-08
相关资源
相似解决方案