I have a Dropdown-Box which looks like this: Dropdown-Box
I need test this Dropdown-Menu and use this Code:
IWebElement classes = driver.FindElement(By.CssSelector("span#select2-ctl00_ctl00_BaseRightContent_MainRightContent_EditMachineDetails_MachineClassList-container"));
SelectElement selectClass = new SelectElement(classes);
selectClass.SelectByText(Parameters.GivenClass);
Does anybody know how to deal with this Error: Element should have been select but was span
Because the new Selenium doen't offer anymore the "Select"-Class