|
Hello All,
In my web page, i am trying to select an option from drop down..
for that i am trying with following:
Select selectBox = new Select(Globals.driver.findElement(By.xpath("XPATH of the dropdown")));
selectBox.selectByValue("value to select");
but this is giving following error:
org.openqa.selenium.support.ui.UnexpectedTagNameException: Element should have been "select" but was "input"
Can anybody please suggest what is wrong with my code, or any more info is required to debug..
Thanks
|