Hi,
I'm trying to use AutoTest.getLocator() and AutoTest.getElement() to help my test automation engineer develop SilkTests against my SmartClient TreeGrid. (Actually I have an object named "craPositionGrid" that extends TreeGrid.)
What must I pass into AutoTest.getLocator() in order to get the locator string for a particular cell in my TreeGrid?
When I try this I can get the locator for the entire grid if the TreeGrid's ID="perfTreeGrid".
Now I want to get a locator string for a single cell in my tree grid. From looking at some of the AutoTest.js code I thought I'd try this:
Is there a better way to get the locator for a single cell in my grid than the method I'm using in the above code example?
Thank you very much!!!
I'm trying to use AutoTest.getLocator() and AutoTest.getElement() to help my test automation engineer develop SilkTests against my SmartClient TreeGrid. (Actually I have an object named "craPositionGrid" that extends TreeGrid.)
What must I pass into AutoTest.getLocator() in order to get the locator string for a particular cell in my TreeGrid?
When I try this I can get the locator for the entire grid if the TreeGrid's ID="perfTreeGrid".
Code:
isc.AutoTest.getLocator(perfTreeGrid); // returns the string "//craPositionGrid[ID="perfTreeGrid"]/"
Code:
perfTreeGrid.getCellLocator(perfTreeGrid.body, 2, 2); // returns the string "row[key=47565178||rowName=Level_2||2]/col[fieldName=rowName||2]" isc.AutoTest.getLocator(perfTreeGrid) + 'body/' + perfTreeGrid.getCellLocator(perfTreeGrid.body, 2, 2); // returns what looks like a good locator string to me. It is "//craPositionGrid[ID="perfTreeGrid"]/body/row[key=47565178||rowName=Level_2||2]/col[fieldName=rowName||2]"
Thank you very much!!!