wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: selectOneMenu value using Selenium Webdriver+Java+Jsf
 
Similar Threads
Unable to locate the element while executing TC as JUNIT but it is working fine in IDE
Can't get to the bean methods
JSF conditional HTML
programming problem
set values in a table from other