public void TestChooseWithExpectedValue()
        {
            Selenium.Setup(
                o => o.Select(FormXpath + "/select[@id='select']", "Element"));

            var select = new SelectField(Selenium.Object, _form, Id.Is("select"));

            select.Choose("Element");
        }
        public void TestChooseWithExpectedIndexValue()
        {
            Selenium.Setup(
                o => o.Select(FormXpath + "/select[@id='select']", "Element"));

            Selenium.Setup(
                o => o.GetSelectOptions(FormXpath + "/select[@id='select']"))
                .Returns(new[] {"", "", "Element"});

            var select = new SelectField(Selenium.Object, _form, Id.Is("select"));

            select.Choose(2);
        }