We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More
This site is now read-only. You can still browse and search as usual. Learn More
It seems to be a https://eclipse.org/nebula/widgets/grid/grid.php control. If so, you can get data from this grid and interact with it using the grid's internal methods and properties - those under the Java category in the Object Browser.
For example, to get the grid data:
// JScript
var grid = ...; // "path" to your grid object
var nRows = grid.getItemCount();
var nCols = grid.getColumnCount();
var value;
for (var i = 0; i < nRows; i++)
{
Log.Message("Row " + i);
for (var j = 0; j < nCols; j++)
{
value = grid.getItem(i).getText_2(j).OleValue;
Log.Message(value);
}
}
To expand or collapse a row:
gridObj.getItem(index).setExpanded(true); gridObj.getItem(index).setExpanded(false);
What type of grid is it?
Hi
Our application uses SWT/Jface grid (Standard type) which is based on Java API.
I got solution on detecting the text on this grid by using the setting which is mentioned in below blog.
http://www.testmanagement.com/blog/2013/08/text-recognition-for-test-automation/
Now I am able to detect the text on this grid however I am not able to perform the operation on this grid.
For Ex: To Expand the grid I need to click to the '+', '-' Image which is displayed beside to this text.
I am not able to detect and click these Images.Also I want to access the content of this grid columnwise or rowise.
I have attached screenshot of the grid.
What's the JavaFullClassName property of your grid?
It shows JavaFullClassname as
org.eclipse.nebula.oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.super.o0OO