[英]How to select from a dropdown with Selenium WebDriver 3.8 for C#
I'm trying to select a value from a dropdown select item with Selenium. 我正在尝试从Selenium的下拉选择项中选择一个值。 However, I cannot find the Select or SelectElement objects within 'OpenQA.Selenium.Support.UI' in C#?
但是,我在C#的'OpenQA.Selenium.Support.UI'中找不到Select或SelectElement对象吗?
Has this functionality been removed? 此功能是否已删除?
Is there an alternate way to select an option from the select element on a webpage? 有没有其他方法可以从网页上的选择元素中选择选项?
通过安装Selenium.Support(版本3.8.0)NuGet软件包,可以使用SelectElement。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.