Go down
Posts : 1
Join date : 2012-08-29

Setting value in Select element build by javascript not possible

on Wed Aug 29, 2012 8:14 pm
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);

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:
Back to top
Permissions in this forum:
You cannot reply to topics in this forum