Cant access checkbox in Developer express grid column in the browser
Hi, I am trying to access the checkbox embedded in one of the columns of the developer express grid. (Please refer to the attachments) . The following is the configuration of browser and test complete I am currently using:
Browser: IE8 64-bit (we want to test on IE8, so cant upgrades the browser)
TestComplete : 8.70.727.7
OS: Windows 7 professional 64 bit
The current problem which I have is the individual columns of the grid in which the checkboxes are placed can only be referred in test complete as cells with child count zero and if we go through the properties of cell in object spy of test complete (please refer to attachments),we don’t have any property except the innerHtml or OuterHtml of the cell which actually depicts that the cell has checkbox embedded in it. The innerHtml property of the cell (with checkbox ticked) looks like this:
<SPAN class="dxWeb_edtCheckBoxChecked dxICheckBox"></SPAN>
And for unchecked checkbox the innerHtml looks like this:
<SPAN class="dxWeb_edtCheckBoxUnChecked dxICheckBox"></SPAN>
So presently my script is actually accessing the InnerHtml property of the cell object and parsing the sub string edtCheckBoxChecked or edtCheckBoxUnChecked in the <span….> tag and then determining whether the checkbox is either checked or unchecked.
The problem with this approach is that every time if developer express changes their class from class="dxWeb_edtCheckBoxChecked dxICheckBox" to let’s say class="dxWeb_xxxxxxx" ,we have to modify our code according to the name change in the span tag. This approach is increasing our reliability on devx naming and we are asked not to rely on this by devx as there will be changes in its styling in every release of devx patches. So is there any better approach for this problem.