ExtensionsSelectItemByValuefromDrpDwn Method |
Select the value from dropdown using value from collection of dropdown values.
User needs to click on dropdown before using this method
Namespace: SeleniumUtilitiesAssembly: SeleniumUtilities (in SeleniumUtilities.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static void SelectItemByValuefromDrpDwn(
this IList<IWebElement> elementList,
string ItemValue
)
<ExtensionAttribute>
Public Shared Sub SelectItemByValuefromDrpDwn (
elementList As IList(Of IWebElement),
ItemValue As String
)
public:
[ExtensionAttribute]
static void SelectItemByValuefromDrpDwn(
IList<IWebElement^>^ elementList,
String^ ItemValue
)
[<ExtensionAttribute>]
static member SelectItemByValuefromDrpDwn :
elementList : IList<IWebElement> *
ItemValue : string -> unit
Parameters
- elementList
- Type: System.Collections.GenericIListIWebElement
[Missing <param name="elementList"/> documentation for "M:SeleniumUtilities.Extensions.SelectItemByValuefromDrpDwn(System.Collections.Generic.IList{OpenQA.Selenium.IWebElement},System.String)"]
- ItemValue
- Type: SystemString
[Missing <param name="ItemValue"/> documentation for "M:SeleniumUtilities.Extensions.SelectItemByValuefromDrpDwn(System.Collections.Generic.IList{OpenQA.Selenium.IWebElement},System.String)"]
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IListIWebElement. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also