Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

selectOneMenu value using Selenium Webdriver+Java+Jsf  RSS feed

Kavala Naresh
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:
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.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!