简体   繁体   中英

UFT GetCellData function causes IE to crash on SAPTable object

I am using HP UFT 11.52 on the SAP Web interface (Webdynpro) over Internet Explorer 8.

I have a SAPTable object that I am trying to activate the 'GetCellData' function on it to get the value under the "ID Number" column of the first row but when activating the function it causes the IE to crash and recover itself.

That's the code:

Browser("Browser").Page("Page").Frame("searchDialog").SAPTable("ResultsTable").GetCellData(l, "ID Number")

I know the Webdynpro support of the new UFT is kind a new but is there another way to workaround it so the IE won't crash when I'm using this function?

Column name is not a unique identifier, so column number is used to access table cell data. According to UFT User Manual object.GetCellData( row, column) arguments are long integers, the row and the column numbers where the cell is located.

Use GetCellData like this:

Browser("Browser").Page("Page").Frame("searchDialog").SAPTable("ResultsTable").GetCellData(1, 1)
Browser("Browser").Page("Page").Frame("searchDialog").SAPTable("ResultsTable").GetCellData(1, 2)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM