1 Reply Latest reply on Apr 5, 2011 4:53 AM by Eugene Nichegovskiy

    Selenium-richfaces library. Is it possible to get id of the element using other properties?

    Eugene Nichegovskiy Newbie

      I use Richfaces Selenium library to automate my tests. I have following problem:

      i.e. we have  <img id='dynID' title="some title" alt="some text"/>


      I can click on the element by XPathLocator:

      selenium.click(xp("//img[@alt='some text']"));


      but I need to get ID of the element too, becase further work with my page depends on this ID. ID is dynamicly generated, so I need to get it using other properties.


      How can I get it?

      In the library I saw only getSelectedId  but it's for SelectLocator.