Код:
Код: Выделить всё
1----------
Код: Выделить всё
Select DropDown = new Select(driver.findElement(By.id("ctl00_ContentPlaceHolder1_RadGrid1_ctl00_ctl02_ctl02_EditFormControl_rcbControllerType1_Input")));
DropDown.selectByVisibleText("ValueTwo");
Код: Выделить всё
:org.openqa.selenium.support.ui.UnexpectedTagNameException: Element should have been "select" but was "input"
Код: Выделить всё
WebElement Dropdown = driver.findElement(By.id("ctl00_ContentPlaceHolder1_RadGrid1_ctl00_ctl02_ctl02_EditFormControl_rcbControllerType1_Input"));
Select clickThis = new Select (Dropdown);
clickThis.selectByVisibleText("ValueTwo");
Код: Выделить всё
org.openqa.selenium.support.ui.UnexpectedTagNameException: Element should have been "select" but was "input"
3--------------
Код: Выделить всё
driver.findElement(By.id("ctl00_ContentPlaceHolder1_RadGrid1_ctl00_ctl02_ctl02_EditFormControl_rcbControllerType1_Input")).sendKeys("ValueTwo");
Кроме того, я запускаю свой веб-скрипт на firefox 38.0.5 с selenium 2.46.0 с eclipse TestNG.
Я подтвердил, что фрейм не является iframe.
Пожалуйста, предложите решение.
Подробнее здесь: https://stackoverflow.com/questions/310 ... -webdriver
Мобильная версия