2 Replies Latest reply on Oct 5, 2010 7:12 AM by Sascha Janz

    trouble using selenium with richfaces 3.3.3 final

    Sascha Janz Master

      i try to write several selenium tests for my application. but i got an "invalid  xpath" expression, when i try to click on a list entry of a combo box or something else

       

      i tried

       

       

      selenium

      .click("//[id='masterform:INPUTTEXT_comboboxButton']");

       

      and got

       

      com.thoughtworks.selenium.SeleniumException

       

      : ERROR: Invalid xpath [2]: //[id='masterform:INPUTTEXT_comboboxButton']

      at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(

      HttpCommandProcessor.java:97)

      at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(

      HttpCommandProcessor.java:91)

      at com.thoughtworks.selenium.DefaultSelenium.click(

      DefaultSelenium.java:167)

       

       

       

      if i use

       

      selenium

       

      .click("masterform:INPUTTEXT_comboboxButton");

       

      it is working.

       

      what's wrong with the first expression?