Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

selectOneMenu value using Selenium Webdriver+Java+Jsf

 
Kavala Naresh
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I need to set value to primefaces or JSF selectOneMenu using webdriver.
I am able to achieve this using index but could not set value directly.
working code with Index:
driver.findElement(By.name("LNSYNDGLP0_SL_CCY_editableInput")).click();
driver.findElement(By.xpath("//div[@id='LNSYNDGLP0_SL_CCY_panel']/ul/li[7]")).click();
I need something like --> driver.findElement(By.xpath("//div[@id='LNSYNDGLP0_SL_CCY_panel']/ul/li[value ]")).click();

Could anybody please suggest a way to achieve this.

Thanks,
Naresh.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic