Hi,
We are having an issue to expand/collapse ListGrid groups by clicking the group expansion/collapsion icon(row) by Selenium.
We are using SmartClient v8.3p_2013-09-01/PowerEdition with Selenium IDE 2.4.0 on FireFox 12.
Please try the following example:
And the selenium statement we are using is
selenium.click("scLocator=//ListGrid[ID=\"countryList\"]/body/row[4]/col[fieldName=countryCode||0]");
We notice that if we scroll the horizontal bar to the middle of the listgrid, the expansion/collapsion works by selenium.click(). It may happens because in your core-extensions we are using for doClick method, it tries to mouse down some coords hidden in the screen. (Due to the horizontal overflow: for the expansion/collapse row it only have one column and the X coords for this column got from isc.AutoTest.getPageCoords(scLocator) seems hidden in the screen).
Thanks!
We are having an issue to expand/collapse ListGrid groups by clicking the group expansion/collapsion icon(row) by Selenium.
We are using SmartClient v8.3p_2013-09-01/PowerEdition with Selenium IDE 2.4.0 on FireFox 12.
Please try the following example:
Code:
isc.ListGrid.create({ ID: "countryList", width:"100%", height:224, overflow: "auto", dataSource: countryDS, fields:[ {name:"countryCode", width: 300}, {name:"countryName", width: 300}, {name:"government", width: 300}, {name:"continent", width: 300}, {name:"capital", width: 300}, {name:"member_g8", width: 300}, {name:"independence", width: 300}, {name:"area", width: 300}, {name:"population", width: 300}, {name:"gdp", width: 300} ], groupStartOpen:"all", groupByField: 'continent', autoFetchData: true })
selenium.click("scLocator=//ListGrid[ID=\"countryList\"]/body/row[4]/col[fieldName=countryCode||0]");
We notice that if we scroll the horizontal bar to the middle of the listgrid, the expansion/collapsion works by selenium.click(). It may happens because in your core-extensions we are using for doClick method, it tries to mouse down some coords hidden in the screen. (Due to the horizontal overflow: for the expansion/collapse row it only have one column and the X coords for this column got from isc.AutoTest.getPageCoords(scLocator) seems hidden in the screen).
Thanks!
Comment