back to nexaweb
search
Close source view

  1. ' get the app object
  2. Set appObj = Browser("Welcome To Nexaweb").Page("Welcome To Nexaweb").JavaApplet("DefaultJvmDetector").Object.getScriptObject()
  3.  
  4. ' get the table object
  5. Set tableObj = appObj.findObjectById("FooterTable")
  6.  
  7. ' get the footer row
  8. Set footerRow = tableObj.getFooterRow()
  9.  
  10. ' get the label in the first column of the footer row
  11. Set labelObj = footerRow.getObjectAt( 0 )
  12.  
  13. ' get the text of the label and check it
  14. labelText = labelObj.getText()
  15. if( labelText <> "Footer Row Column 1" ) then
  16.     Reporter.ReportEvent micFail,"Footer Row", "Column One Label wrong text."
  17. else
  18.     Reporter.ReportEvent micPass,"Footer Row", "Column One Label was correct."
  19. End if
  20.  
  21. ' get the label in the second column of the footer row
  22. Set labelObj = footerRow.getObjectAt( 1 )
  23.  
  24. ' get the text of the lable and check it
  25. labelText = labelObj.getText()
  26. if( labelText <> "Footer Row Column 2" ) then
  27.     Reporter.ReportEvent micFail,"Footer Row", "Column Two Label wrong text."
  28. else
  29.     Reporter.ReportEvent micPass,"Footer Row", "Column Two Label was correct."
  30. End if

© Copyright 2005-2008 Nexaweb Technologies Inc. All Rights Reserved.