I have what looks like a dropdown menu, but it is a mat-select.
I get an error when my test hits this element which says Element should have been select but was mat-select
.
This is the element public DropdownSelect FormDropdown => new(FindElement(By.Id("formDropdown")));
This is my method of trying to select an item in the dropdown.
public void SelectForm(string form)
{
FormDropdown.Click();
var selectElement = new SelectElement(FormDropdown.Element);
selectElement.SelectByText(form);
}
How do I handle this since it appears that I cannot use what I have been using for dropdowns?