b enterNewRows-1.rctest
enterNewRows-1.rctest
exampleOpen smartgwt grid_editing_new_row
waitForElementClickable scLocator=//testRoot[]/child[Class=ListGrid||index=0||length=2||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list]/body/row[pk=1||countryName=United%20States||0]/col[fieldName=countryName||0]
assertEval var dataSource = selenium.browserbot.getCurrentWindow().isc.AutoTest.getLocatorCanvas("//testRoot[]/child[Class=ListGrid||index=0||length=2||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list]").dataSource; dataSource.autoCacheAllData = true; dataSource.setClientOnly(true); true true
waitForCondition var dataSource = selenium.browserbot.getCurrentWindow().isc.AutoTest.getLocatorCanvas("//testRoot[]/child[Class=ListGrid||index=0||length=2||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list]").dataSource; dataSource.hasAllData() 5000
scrollAndHoldExample bottom
click scLocator=//testRoot[]/child[Class=IButton||index=1||length=2||classIndex=0||classLength=1||roleIndex=0||roleLength=1||title=Edit%20New||scRole=button]/
waitForElementClickable scLocator=//testRoot[]/child[Class=ListGrid||index=0||length=2||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list]/editRowForm/item[name=countryName||title=Country||value=Petoria||index=0||Class=TextItem]/element
type scLocator=//testRoot[]/child[Class=ListGrid||index=0||length=2||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list]/editRowForm/item[name=independence||title=Nationhood||index=4||Class=DateItem]/item[name=dateTextField||title=Nationhood|||index=0||Class=TextItem]/element 07/12/2001
click scLocator=//testRoot[]/child[Class=ListGrid||index=0||length=2||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list]/editRowForm/item[name=independence||title=Nationhood||index=4||Class=DateItem]/[icon="picker"]
waitForElementClickable scLocator=//testRoot[]/child[Class=ListGrid||index=0||length=2||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list]/editRowForm/item[name=independence||title=Nationhood||index=4||Class=DateItem]/picker/cancelButton/
click scLocator=//testRoot[]/child[Class=ListGrid||index=0||length=2||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list]/editRowForm/item[name=independence||title=Nationhood||index=4||Class=DateItem]/picker/cancelButton/
type scLocator=//testRoot[]/child[Class=ListGrid||index=0||length=2||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list]/editRowForm/item[name=population||title=Population||value=4||index=3||Class=TextItem]/element 5
click scLocator=//testRoot[]/child[Class=ListGrid||index=0||length=2||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list]/editRowForm/item[name=continent||title=Continent||index=1||Class=SelectItem]/[icon='picker']
waitForElementClickable scLocator=//testRoot[]/child[Class=ListGrid||index=0||length=2||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list]/editRowForm/item[name=continent||title=Continent||index=1||Class=SelectItem]/pickList/body/row[continent=North%20America||2]/col[fieldName=continent||0]
click scLocator=//testRoot[]/child[Class=ListGrid||index=0||length=2||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list]/editRowForm/item[name=continent||title=Continent||index=1||Class=SelectItem]/pickList/body/row[continent=North%20America||2]/col[fieldName=continent||0]
type scLocator=//testRoot[]/child[Class=ListGrid||index=0||length=2||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list]/editRowForm/item[name=countryName||title=Country||value=Petoria||index=0||Class=TextItem]/element Petoria
sendKeys scLocator=//testRoot[]/child[Class=ListGrid||index=0||length=2||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list]/editRowForm/item[name=independence||title=Nationhood||index=4||Class=DateItem]/item[name=dateTextField||title=Nationhood|||index=0||Class=TextItem]/element ${KEY_ENTER}
waitForGridDone scLocator=//testRoot[]/child[Class=ListGrid||index=0||length=2||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list]
scrollAndHoldExample top
waitForElementClickable scLocator=//testRoot[]/child[Class=ListGrid||index=0||length=2||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list]/header/headerButton[fieldName=countryName]/
click scLocator=//testRoot[]/child[Class=ListGrid||index=0||length=2||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list]/header/headerButton[fieldName=countryName]/
waitForGridDone scLocator=//testRoot[]/child[Class=ListGrid||index=0||length=2||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list]
verifyText scLocator=//testRoot[]/child[Class=ListGrid||index=0||length=2||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list]/body/row[10]/col[fieldName=countryName||0] Petoria
verifyText scLocator=//testRoot[]/child[Class=ListGrid||index=0||length=2||classIndex=0||classLength=1||roleIndex=0||roleLength=1||scRole=list]/body/row[10]/col[fieldName=independence||4] 07/12/2001