Announcement

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

    Selenium support - error when typing value into filterEditor field

    Simple scenario to reproduce:

    For this grid:

    Code:
      isc.ListGrid.create({
        ID: "countryList",
        width:500, height:300, alternateRecordStyles:true,
        data:[
            {countryCode:"us", countryName:"us", capital:"wash", continent:"America"},
            {countryCode:"pl", countryName:"pl", capital:"wars", continent:"Eur"}
        ],
        fields:[
            {name:"countryCode", title:"Code", width:50},
            {name:"countryName", title:"Country"},
            {name:"capital", title:"Capital"},
            {name:"continent", title:"Continent"}
        ],
        showFilterEditor: true
    })
    When trying to execute:
    Code:
    [info] Executing: |type | id=isc_U | pl |
    Which is typing any value to first filterEditor column. I get following error:

    Code:
    [error] Unexpected Exception: message -> invalid array length, fileName -> http://localhost:7001/cmki/isomorphic/system/modules/ISC_Core.js?isc_version=8.0.js, lineNumber -> 3876, stack -> isc_c_AutoTest_getLocatorFormItem("id=isc_U")@http://localhost:7001/cmki/isomorphic/system/modules/ISC_Core.js?isc_version=8.0.js:3876 @:0 , name -> RangeError

    selenium test case attached, but it's probobly faster to record one yourself.

    Full selenium log is:

    Code:
    [info] Executing: |open | /cmki/secure/test.jsp | |
    [info] Executing: |click | scLocator=//ListGrid[ID="countryList"]/body/row[countryCode=us||countryName=us||0]/col[fieldName=countryName||1] | |
    [info] Located in doScClick : scLocator=//ListGrid[ID="countryList"]/body/row[countryCode=us||countryName=us||0]/col[fieldName=countryName||1]
    [info] Executing: |click | scLocator=//RecordEditor[ID="countryListfilterEditor"]/child[Class=Button||index=1||length=2||classIndex=0||classLength=1||roleIndex=0||roleLength=1||title=Untitled%20Button||scRole=button]/icon | |
    [info] Located in doScClick : scLocator=//RecordEditor[ID="countryListfilterEditor"]/child[Class=Button||index=1||length=2||classIndex=0||classLength=1||roleIndex=0||roleLength=1||title=Untitled%20Button||scRole=button]/icon
    [info] Executing: |type | id=isc_U | pl |
    [error] Unexpected Exception: message -> invalid array length, fileName -> http://localhost:7001/cmki/isomorphic/system/modules/ISC_Core.js?isc_version=8.0.js, lineNumber -> 3876, stack -> isc_c_AutoTest_getLocatorFormItem("id=isc_U")@http://localhost:7001/cmki/isomorphic/system/modules/ISC_Core.js?isc_version=8.0.js:3876 @:0 , name -> RangeError

    Env is:

    FF 5.0
    ISC 8.0 Power, no patches

    How do I make selenium type values into those fields without getting this error.

    Thanks in advance.

    Lukasz
    Attached Files

    #2
    Has anybody confirmed this is an issue related to SC?

    lkc

    Comment

    Working...
    X