aspose file tools*
The moose likes JSF and the fly likes  selectOneMenu value using Selenium Webdriver+Java+Jsf Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark " selectOneMenu value using Selenium Webdriver+Java+Jsf" Watch " selectOneMenu value using Selenium Webdriver+Java+Jsf" New topic
Author

selectOneMenu value using Selenium Webdriver+Java+Jsf

Kavala Naresh
Greenhorn

Joined: Sep 10, 2012
Posts: 3
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: selectOneMenu value using Selenium Webdriver+Java+Jsf