Announcement

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

    listgrid checkbox column

    We have test cases where we check the value of a checkbox column through the "getTable" method. Smething like below:

    Code:
    selenium.getTable("scLocator=//ListGrid[ID=\"ContactMediumFormFrame$resultTable1\"].0.3");
    It used to return the checkbox image path - something like:
    Code:
    "isomorphic/skins/Enterprise/images/DynamicForm/checked.png"
    but now it returns:

    Code:
    “<span style='display:inline-block;background-size:100% 100%;background-image:url("http://rmtst24.conceptwave.com:8080/cwf_Orga/isomorphic/skins/Enterprise/images/blank.gif");width:13px;height:13px;vertical-align:text-top;margin-left:2px;margin-right:2px'  eventpart='valueicon' class='checkboxTrue' ></span>”

    Is this a change in behaviour you are aware of?

    #2
    Yes. If you can believe, IE9-11 leak memory whenever <img> elements are used and them removed from the DOM, so to keep memory from leaking too badly, we replaced several common images with spans to prevent the worst of the leaks. So getTable() will not work with that new structure.

    As an aside: we're not trying to completely prevent IE from leaking, that's just not possible any more.

    Comment


      #3
      Thanks - I guess we'll fix the testcases to check for the class name? Or is there a better way to verify that the checkbox is checked in the UI

      Comment


        #4
        We always encourage calling SC APIs (which are documented and supported) rather than inspecting the DOM directly (which is not).

        So in a case like this, check that the record value has changed as you expect.

        Comment

        Working...
        X