Sunday, January 1, 2012

Common methods

Back Method
Navigates to the previous page in the browser history list.
Syntax --object.Back

CaptureBitmap Method 
Saves a screen capture of the object as a .png or .bmp image, depending on the specified file extension
Syntax--object.CaptureBitmap FullFileName

GetROProperty Method
Returns the current value of the test object property from the object in the application.
Syntax--object.GetROProperty (Property, [PropertyData])


GetTOProperties Method
Returns the collection of properties and values used to identify the object.
Syntax--object.GetTOProperties

SetTOProperty Method 
Sets the value of the specified property in the test object description
Syntax--object.SetTOProperty Property, Value

Output Method 
Retrieves the current value of an item and stores it in a specified location
Syntax--object.Output Verify

WaitProperty Method
Waits until the specified object property achieves the specified value or exceeds the specified timeout before continuing to the next step.
Syntax--object.WaitProperty (PropertyName, PropertyValue, [TimeOut])

Sync Method
Waits for the browser to complete the current navigation.
Syntax--object.Sync

ChildObjects Method
Returns the collection of child objects contained within the object.
Syntax--object.ChildObjects ([Description])

Close Method
Closes the browser window.
Syntax--object.Close


DataTable Object--The run-time Data Table. 

AddSheet Method--Adds the specified sheet to the run-time Data Table and returns the sheet so that you can directly set properties of the new sheet in the same statement.

Syntax--DataTable.AddSheet(SheetName)

DeleteSheet Method  --Deletes the specified sheet from the run-time Data Table. 

Syntax--DataTable.DeleteSheet SheetID

Export Method--Saves a copy of the run-time Data Table in the specified location. 

Syntax--DataTable.Export(FileName)

ExportSheet Method--Exports a specified sheet of the run-time Data Table to the specified file.


  • If the specified file does not exist, a new file is created and the specified sheet is saved.

  • If the current file exists, but the file does not contain a sheet with the specified sheet name, the sheet is inserted as the last sheet of the file.

  • If the current file exists and the file contains the specified sheet, the exported sheet overwrites the existing sheet.
Syntax--DataTable.ExportSheet(FileName, DTSheet)

GetCurrentRow Method--Returns the current (active) row in the first sheet in the run-time Data Table (global sheet). 

Syntax--DataTable.GetCurrentRow

GetRowCount Method--Returns the total number of rows in the longest column in the first sheet in the run-time Data Table (global sheet). 

Syntax--DataTable.GetRowCount

GetSheet Method  --Returns the specified sheet from the run-time Data Table. 

Syntax--DataTable.GetSheet(SheetID)

GetSheetCount Method--Returns the total number of sheets in the run-time Data Table. 

Syntax--DataTable.GetSheetCount.

GlobalSheet Property--Returns the first sheet in the run-time Data Table (global sheet). 

Syntax--DataTable.GlobalSheet

Import Method--Imports the specified Microsoft Excel file to the run-time Data Table.

Syntax--DataTable.Import(FileName)

ImportSheet Method--Imports a sheet of a specified file to a specified sheet in the run-time Data Table. The data in the imported sheet replaces the data in the destination sheet (see SheetDest argument). 

Syntax--DataTable.ImportSheet(FileName, SheetSource, SheetDest

LocalSheet Property--Returns the current (active) local sheet of the run-time Data Table.

Syntax--DataTable.LocalSheet

RawValue Property--Retrieves the raw value of the cell in the specified parameter and the current row of the run-time Data Table. The raw value is the actual string written in a cell before the cell has been computed, such as the actual text from a formula. 

Syntax--DataTable.RawValue ParameterID [, SheetID]

  SetCurrentRow Method--Sets the specified row as the current (active) row in the run-time Data Table. 

Syntax--DataTable.SetCurrentRow(RowNumber)

SetNextRow Method--Sets the row after the current (active) row as the new current row in the run-time Data Table. 

Syntax--DataTable.SetNextRow

SetPrevRow Method--Sets the row above the current (active) row as the new current (active) row in the run-time Data Table. 

Syntax--DataTable.SetPrevRow

Value Property--DataTable default property. Retrieves or sets the value of the cell in the specified parameter and the current row of the run-time Data Table.

Syntax--To find the value:DataTable.Value(ParameterID [, SheetID])
 

 

 

 

 

 

 
 

 

 

 

 

 
 

 

 

 

 

 


 


 

 

 

 

 

 


 












No comments:

Post a Comment