コード例 #1
0
        public void ThenUserShouldSelectsLebanonFromCountryDropdownMenu(string selection)
        {
            //Get the element locator
            var dropwdown = _parser.GetElementByName("Countries");

            SEActions.SelectFromDropDown(dropwdown, selection);
        }
コード例 #2
0
        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]);
        }