I am running into a problem where iTest can not find an item on a web page.
I have a table on a page, and each row in that table has a submit button. When recording my steps, I click one of the buttons in this table. The problem is when I replay the test, it triggers the event OnWebTargetNotFound when it tries to click the same button. If I put a breakpoint after the Click command, I can manually use the Describe function to see the attributes of the button and it is contains the same location as the recorded Click command that is failing.
Below is the location for both the Click command and the Describe command. I have also attached a picture of the table. If any additional information is needed, please let me know.
//TR[@onclick='document.forms.formAdd.destination1.value="192"; document.forms.formAdd.destination2.value="168"; document.forms.formAdd.destination3.value="255"; document.forms.formAdd.destination4.value="0"; document.forms.formAdd.destinationMask1.value="255"; document.forms.formAdd.destinationMask2.value="255"; document.forms.formAdd.destinationMask3.value="255"; document.forms.formAdd.destinationMask4.value="0"; document.forms.formAdd.route1.value="10"; document.forms.formAdd.route2.value="22"; document.forms.formAdd.route3.value="154"; document.forms.formAdd.route4.value="1"; document.forms.formAdd.distance.value="1"; document.forms.formAdd.tagValue.value="0"; document.getElementById("route1").disabled=false; document.getElementById("route2").disabled=false; document.getElementById("route3").disabled=false; document.getElementById("route4").disabled=false; document.getElementById("routeInterface").disabled=true; document.forms["formAdd"].routeInterface.selectedIndex = "0" ; document.forms.formAdd.gwType.value=""; document.getElementById("gwAddr").checked = true; document.getElementById("gwIf").checked = false; document.forms["formAdd"].trackUsed.selectedIndex ="0"; return true;']/TD[6]/INPUT[@name='Delete' and @value='Delete' and @type='submit']