SpecFlowOSS / SpecFlow.Actions

BSD 3-Clause "New" or "Revised" License
57 stars 53 forks source link

IWebElement.SelectDropdownOptionByValue is using SelectByText not by value #114

Open jarongh opened 1 year ago

jarongh commented 1 year ago

In SpecFlow.Actions/Plugins/SpecFlow.Actions.Selenium/SpecFlow.Actions.Selenium/WebElementExtensions.cs

public static void SelectDropdownOptionByValue(this IWebElement webElement, string value)
{
    GetSelectElement(webElement).SelectByText(value);
}

Shouldn't it be searched by value?

SabotageAndi commented 1 year ago

Jup. Do you want to send a PR to fix this?

jarongh commented 1 year ago

Ok PR is out there.