exampleOpen |
smartgwt |
grid_dataoperations_filter |
waitForElementClickable |
scLocator=//testRoot[]/member[Class=ListGrid||index=0||length=4||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list]/body/row[pk=209||countryCode=AF||countryName=Afghanistan||0]/col[fieldName=countryName||1] |
|
waitForGridDone |
scLocator=//testRoot[]/member[Class=ListGrid||index=0||length=4||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list] |
|
assertEval |
var grid = selenium.browserbot.getCurrentWindow().isc.AutoTest.getObject("scLocator=//testRoot[]/member[Class=ListGrid||index=0||length=4||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list]"); grid.data.getLength() |
216 |
waitForElementClickable |
scLocator=//testRoot[]/member[Class=IButton||index=1||length=4||classIndex=0||classLength=3||roleIndex=0||roleLength=3||title=Filter%20Country%3AUnited||scRole=button]/ |
|
click |
scLocator=//testRoot[]/member[Class=IButton||index=1||length=4||classIndex=0||classLength=3||roleIndex=0||roleLength=3||title=Filter%20Country%3AUnited||scRole=button]/ |
|
waitForGridDone |
scLocator=//testRoot[]/member[Class=ListGrid||index=0||length=4||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list] |
|
waitForElementClickable |
scLocator=//testRoot[]/member[Class=ListGrid||index=0||length=4||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list]/body/row[2]/col[fieldName=countryName||1] |
|
verifyText |
scLocator=//testRoot[]/member[Class=ListGrid||index=0||length=4||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list]/body/row[2]/col[fieldName=countryName||1] |
United States |
waitForElementNotPresent |
scLocator=//testRoot[]/member[Class=ListGrid||index=0||length=4||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list]/body/row[3]/col[fieldName=countryName||1] |
|
waitForElementClickable |
scLocator=//testRoot[]/member[Class=IButton||index=2||length=4||classIndex=1||classLength=3||roleIndex=1||roleLength=3||title=Filter%20Capital%3Aport||scRole=button]/ |
|
click |
scLocator=//testRoot[]/member[Class=IButton||index=2||length=4||classIndex=1||classLength=3||roleIndex=1||roleLength=3||title=Filter%20Capital%3Aport||scRole=button]/ |
|
waitForElementClickable |
scLocator=//testRoot[]/member[Class=ListGrid||index=0||length=4||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list]/body/row[5]/col[fieldName=countryName||1] |
|
verifyText |
scLocator=//testRoot[]/member[Class=ListGrid||index=0||length=4||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list]/body/row[5]/col[fieldName=countryName||1] |
Vanuatu |
waitForElementNotPresent |
scLocator=//testRoot[]/member[Class=ListGrid||index=0||length=4||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list]/body/row[6]/col[fieldName=countryName||1] |
|
assertEval |
var grid = selenium.browserbot.getCurrentWindow().isc.AutoTest.getObject("scLocator=//testRoot[]/member[Class=ListGrid||index=0||length=4||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list]"); grid.body.vscrollOn |
false |
waitForElementClickable |
scLocator=//testRoot[]/member[Class=IButton||index=3||length=4||classIndex=2||classLength=3||roleIndex=2||roleLength=3||title=Clear%20Filter||scRole=button]/ |
|
click |
scLocator=//testRoot[]/member[Class=IButton||index=3||length=4||classIndex=2||classLength=3||roleIndex=2||roleLength=3||title=Clear%20Filter||scRole=button]/ |
|
waitForGridDone |
scLocator=//testRoot[]/member[Class=ListGrid||index=0||length=4||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list] |
|
assertEval |
var grid = selenium.browserbot.getCurrentWindow().isc.AutoTest.getObject("scLocator=//testRoot[]/member[Class=ListGrid||index=0||length=4||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list]"); grid.body.vscrollOn |
true |