Forum Discussion
HKosova
Alumni
11 years agoHi Norm,
What is the WndClass of the "Station List" list box?
norman_nelson
11 years agoNew Contributor
Hi Helen,
The WndClass = SPR32X35_SpreadSheet. From what I understand it comes from a 3rd party package.
Norm
- HKosova11 years ago
Alumni
Hi Norm,
This looks like the FarPoint Spread grid by ComponentOne. Here's the documentation on its properties and methods:
http://helpcentral.componentone.com/NetHelp/Spread8/WebSiteHelp/titlea.html
This grid has the TypePictPicture property and SavePicture method for saving a cell's image to a file:
// JScript
// Saves an image from a FarPoint Spread cell to a file.
// Parameters:
// grid - a FarPoint Spread grid object
// row and column indexes of the image cell. Indexes start from 1.
// fileName - The fully-qualified name of a PNG file to create function SaveCellImage2File(grid, row, column, fileName) { // The row and column indexed (1-based) of the image cell grid.Row = row; grid.Col = column; // Save the cell image to a file var pic = grid.TypePictPicture; if (! grid.SavePicture(pic, fileName, 4 /* Save as PNG */)) Log.Error("Failed to save the cell image."); }You can call this function from your keyword test using the Run Script Routine operation.
You can then compare the saved image to an etalon image, for example, using the Compare Pictures operation.