문제

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)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top