Forum Discussion

Bharadwaj's avatar
Bharadwaj
Contributor
13 years ago

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  :



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.










1 Reply

  • Hi,


    Your test does not work, because TestComplete 8.20 does not support Internet Explorer version 9. Since TestComplete 8.50, you can test pages displayed in Internet Explorer 9. So, to solve your problem, you need to upgrade to TestComplete 8.50 or to TestComplete 8.70 (the current version).