public void ThenUserShouldSelectsLebanonFromCountryDropdownMenu(string selection) { //Get the element locator var dropwdown = _parser.GetElementByName("Countries"); SEActions.SelectFromDropDown(dropwdown, selection); }
public void ThenUserShouldSelectsLebanonFromCountryDropdownMenu(string selection) { //Get the element locator var dropwdown = _parser.GetElementByName("Countries"); //Put the countries in Dictionary Dictionary <string, string> countries = new Dictionary <string, string>() { { "Lebanon", "لبنان" }, { "Bahrain", "البحرين" } }; SEActions.SelectFromDropDown(dropwdown, countries[selection]); }