2021年3月10日星期三

Array pop() does not work for following web table [duplicate]

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

Web Table Example

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)  

Error: Unable to find the object length

https://stackoverflow.com/questions/66571554/array-pop-does-not-work-for-following-web-table March 11, 2021 at 03:26AM

没有评论:

发表评论