Selenium WebDriver and DropDown Boxes

前端 未结 10 1734
星月不相逢
星月不相逢 2020-11-29 00:16

If I want to select an option of a dropdown box, there are several ways to do that. I always used:

driver.findElem         


        
10条回答
  •  遥遥无期
    2020-11-29 01:01

    You can use this

    (new SelectElement(driver.FindElement(By.Id(""))).SelectByText("");
    

提交回复
热议问题