buttonAutoFit-1.rctest
exampleOpen smartgwt buttons_category_autofit
waitForElementClickable scLocator=//testRoot[]/child[Class=IButton||index=1||length=2||classIndex=0||classLength=1||roleIndex=0||roleLength=1||title=Change%20Title||scRole=button]/
click scLocator=//testRoot[]/child[Class=IButton||index=1||length=2||classIndex=0||classLength=1||roleIndex=0||roleLength=1||title=Change%20Title||scRole=button]/
waitForCanvasDone scLocator=//testRoot[]/child[Class=HStack||index=0||length=2||classIndex=0||classLength=1]
assertEval var myButton = selenium.getAutWindow().isc.AutoTest.getObject("//testRoot[]/child[Class=HStack||index=0||length=2||classIndex=0||classLength=1]/member[Class=IButton||index=0||length=2||classIndex=0||classLength=2||roleIndex=0||roleLength=2||scRole=button]/"); myButton.getVisibleWidth() > 120 && myButton.getVisibleWidth() < 140 true
assertEval var myButton = selenium.getAutWindow().isc.AutoTest.getObject("//testRoot[]/child[Class=HStack||index=0||length=2||classIndex=0||classLength=1]/member[Class=IButton||index=1||length=2||classIndex=1||classLength=2||roleIndex=1||roleLength=2||title=Find%20Related||scRole=button]/"); myButton.getVisibleWidth() > 70 && myButton.getVisibleWidth() < 100 true
waitForElementClickable scLocator=//testRoot[]/child[Class=IButton||index=1||length=2||classIndex=0||classLength=1||roleIndex=0||roleLength=1||title=Change%20Title||scRole=button]/
click scLocator=//testRoot[]/child[Class=IButton||index=1||length=2||classIndex=0||classLength=1||roleIndex=0||roleLength=1||title=Change%20Title||scRole=button]/
waitForCanvasDone scLocator=//testRoot[]/child[Class=HStack||index=0||length=2||classIndex=0||classLength=1]
assertEval var myButton = selenium.getAutWindow().isc.AutoTest.getObject("//testRoot[]/child[Class=HStack||index=0||length=2||classIndex=0||classLength=1]/member[Class=IButton||index=0||length=2||classIndex=0||classLength=2||roleIndex=0||roleLength=2||scRole=button]/"); myButton.getVisibleWidth() > 70 && myButton.getVisibleWidth() < 100 true
assertEval var myButton = selenium.getAutWindow().isc.AutoTest.getObject("//testRoot[]/child[Class=HStack||index=0||length=2||classIndex=0||classLength=1]/member[Class=IButton||index=1||length=2||classIndex=1||classLength=2||roleIndex=1||roleLength=2||title=Find%20Related||scRole=button]/"); myButton.getVisibleWidth() > 80 && myButton.getVisibleWidth() < 110 true