I am trying to remove the column header (Entity Type) from the above table using pop(), but does not work.

var arrEntityType = table.FindAllChildren(['ObjectType','ColumnIndex'],['Cell','2'], 10).toArray(); Log.Message(arrEntityType.length) // Output: 9 //Print all the text Log.Message(arrEntityType[i].Text // Output: Vendor Vendor Vendor Vendor Vendor Vendor Vendor Vendor Entity Type I want to remove 'Entity Type' from the output.
Note: I am using a Testcomplete automation tool.
var arrEntityType = tableObject.FindAllChildren(['ObjectType','ColumnIndex'],['Cell','2'], 10).toArray().pop(); Log.Message(arrEntityType.length) https://stackoverflow.com/questions/66571554/array-pop-does-not-work-for-following-web-table March 11, 2021 at 03:26AMError: Unable to find the object length
没有评论:
发表评论