' get the app object
Set appObj = Browser("Welcome To Nexaweb").Page("Welcome To Nexaweb").JavaApplet("DefaultJvmDetector").Object.getScriptObject()
' get the table object
Set tableObj = appObj.findObjectById("FooterTable")
' get the footer row
Set footerRow = tableObj.getFooterRow()
' get the label in the first column of the footer row
Set labelObj = footerRow.getObjectAt( 0 )
' get the text of the label and check it
labelText = labelObj.getText()
if( labelText <> "Footer Row Column 1" ) then
Reporter.ReportEvent micFail,"Footer Row", "Column One Label wrong text."
else
Reporter.ReportEvent micPass,"Footer Row", "Column One Label was correct."
End if
' get the label in the second column of the footer row
Set labelObj = footerRow.getObjectAt( 1 )
' get the text of the lable and check it
labelText = labelObj.getText()
if( labelText <> "Footer Row Column 2" ) then
Reporter.ReportEvent micFail,"Footer Row", "Column Two Label wrong text."
else
Reporter.ReportEvent micPass,"Footer Row", "Column Two Label was correct."
End if