- mig68
- Posts : 1
Join date : 2012-08-29
Setting value in Select element build by javascript not possible
Wed Aug 29, 2012 8:14 pm
Hi
I have select element in which I would like to select a specific value, but I did not have success to do it.
I have tried following:
WebElement list = driver.findElement(By.className("selectelement"));
Select select = newSelect(list);
select.selectByValue("value2");
I try to access the element by class since it is not a standard select element but build by javascript,
otherwise I could use
Select s = new Select("selectelement");
The html is as followed:
I have select element in which I would like to select a specific value, but I did not have success to do it.
I have tried following:
WebElement list = driver.findElement(By.className("selectelement"));
Select select = newSelect(list);
select.selectByValue("value2");
I try to access the element by class since it is not a standard select element but build by javascript,
otherwise I could use
Select s = new Select("selectelement");
The html is as followed:
- Select the “back” button of the Firefox browser to right click and Select the Option from the right click Menu in Selenium Web Driver - Java
- Problem with select in JavaScript
- NoSuchElementError: no such element (javascript webdriver)
- Element is present but cannot get and select a label returns ElementNotVisible
- To select an element inside a folder in a Tree structure UI uisng selenium web driver calls
Permissions in this forum:
You cannot reply to topics in this forum