Я пытаюсь выбрать из выпадающего меню, но я получаю следующую ошибку:
org.openqa.selenium.support.ui.UnexpectedTagNameException: Element should have been "select" but was "input"
Вот мой код:
Select domainDropdown= new Select(driver.findElement(By.classname("dijitReset something")));
Элемент html:
<td class="dijitReset something" role="presentation">
<div class="dijitReset ButtonText" data-dojo-attach-role="presentation">
<span role="option" aria-selected="true" class="dijitReset TextBoxLabel">internal</span>
</div>
<div class="dijitReset dijitValidationContainer">
<input class="dijitReset dijitValidationInner" value="Χ " type="text" tabindex="-1" readonly="readonly" role="presentation">
</div>
<input type="hidden" data-dojo-attach-point="value" value="internal" aria-hidden="true">
</td>