When I generate SelectOneMenu with JSF2.0, the identifier I specified in xhtml binds to the generated identifier from JSF.
eg. from my_fancy_id it generates j_idt9:my_fancy_id
Now I want to test my page using the Selenium 2 web driver. I'm trying to find my menu:
driver.findElement(By.id("my_fancy_id"));
Of course, it does not find anything, because the identifier is changed. What is the best way to find a selection menu on a page?
source share