Selenium Webdriver C# - 爲什麼我必須單擊兩次以選擇單選按鈕? 下面是代碼: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#