Selenium Webdriver C#-为什么我必须单击两次才能选择单选按钮?这是代码:
weItem_TypeRadio = _driver.FindElement(By.CssSelector("input[name*='"
+ stcItemType
+ "'][value='HLP'][type='radio']")
, _stcintTimeoutInSeconds);
weItem_TypeRadio.Click(); // first click puts a dotted box around radio button
weItem_TypeRadio.Click(); // this click actually selects the radio button
Webdriver v2.8 Asp.net 4.0 C#