I am using below script to retrieve specific item from drop down but it's not working.
Select salTitle = new Select(driver.findElement(By.id("s2id_QuickEnquiryForm_salutation"))); salTitle.selectByVisibleText("Mr.");
showing below Error in console "Exception in thread "main" org.openqa.selenium.support.ui.UnexpectedTagNameException: Element should have been "select" but was "div""
I welcome any input!
please find the Below attched Images for HTML,Source Code.