Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

selectOneMenu value using Selenium Webdriver+Java+Jsf

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