Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    select all in listgrid in Selenium

    Hi I'm running into some problems with existing selenium testcases. Since upgrading to SC 9.1 From March 18, the following line now fails. It cannot find the select all checkmark when a listgrid's selectionAppearance is "checkbox". Can you please verify? I used AutoTest in the js console to make sure the locator has not changed and it produces the same locator that we currently have.

    selenium.click("scLocator=//ListGrid[ID=\"page$content$$content$codeTableField$cwFullList\"]/header/headerButton[fieldName=_checkboxField]/valueicon"

    #2
    Another locator that does not work any longer:

    //ListGrid[ID="page$content$$content$resultFrame$result"]/headerMenuButton/

    Comment


      #3
      We've applied a fix to the SC 9.1p/SGWT 4.1p and SC 10.0d/SGWT 5.0d branches, and it should be in the next nightlies.

      Comment


        #4
        Thanks! Does that include both locators?

        Comment


          #5
          We weren't able to reproduce any issue with the second one. You'll need to provide a repro case - perhaps a modified Feature Explorer sample - and the complete Selenium script you're trying to run.

          Note, however in the case of the locator you're referring to, that the menu button isn't present until you hover over a header button. So you'll need to manually add a mouseMove acting on one of the header buttons to the Selenium script before using locators that refer to the header menu button. Something like:

          Code:
          mouseMove scLocator=//ListGrid[ID="countryList"]/header/headerButton[fieldName=capital]/
          click     scLocator=//ListGrid[ID="countryList"]/headerMenuButton/
          Last edited by Isomorphic; 21 Mar 2014, 16:02.

          Comment

          Working...
          X