Bharadwaj
13 years agoContributor
Different Object Hierarchy for IE8 and IE9
Hi I am currently using Test Complete Varsion 8.20.538.7 .My problem is that the code which works for the same web interface tested on IE8 doesnot work on IE9 (due to the changes in the object hierarchy in IE9). Please note our product uses DX controls in its web application(like DX grids etc). The full name attribut in Object Spy of test complete for IE8 is :
Sys.Process('iexplore', 2).Page('http://sunbpapp/iPOS/Web/SelectionItem.aspx?Req=1&DeliveryDate=17/02/2012&DAC=0000000000&CC=GBP&DISTCode=Dist_1').Form('SelectItem').Panel('Layer1').Table('xgvItems').Cell(0, 0).Table('xgvItems_DXMainTable').Cell(0, 0).Table(0).Cell(0, 0)
While for IE9 is :
Does any one know the reason whi I am getting a different structure for IE8 and IE9.Is is due to the browser version or is it because our product uses DX controls so IE splits its HTML different for different versions of IE?
I can assure you there is no change in the interface.
Sys.Process('iexplore', 2).Page('http://sunbpapp/iPOS/Web/SelectionItem.aspx?Req=1&DeliveryDate=17/02/2012&DAC=0000000000&CC=GBP&DISTCode=Dist_1').Form('SelectItem').Panel('Layer1').Table('xgvItems').Cell(0, 0).Table('xgvItems_DXMainTable').Cell(0, 0).Table(0).Cell(0, 0)
While for IE9 is :
Sys.Process('iexplore', 2).Page('http://localhost/iPOS/Web/SelectionItem.aspx?Req=1&DeliveryDate=16/02/2012&DAC=0000000000&CC=GBP&DISTCode=Dist_1').Form('SelectItem').Panel('Layer1').Table('xgvItems').Row(0).Cell(0, 0).Table('xgvItems_DXMainTable').Row('xgvItems_DXHeadersRow').Cell(0, 0).Table(0).Row(0).Cell(0, 0)
Does any one know the reason whi I am getting a different structure for IE8 and IE9.Is is due to the browser version or is it because our product uses DX controls so IE splits its HTML different for different versions of IE?
I can assure you there is no change in the interface.