| || |
Problems recognizing web site objects
I am currently using TestComplete to automate web site testing. I had written some scripts and recorded mouse clicks for verifying links and other on-screen objects within a web page. The tests ran perfectly for a few days, but after some minor changes to the site, the script no longer recognizes the objects to click on. My question is; when a web sites content changes, which happens very often, how do you ensure that the object you want to click will be recognized if it has moved? It seems that even if the object has been moved around slightly, the coordinates change, and TestComplete cannot find it. How do you get TestComplete to recognize these objects, and perform the necessary actions?
Re: Problems recognizing web site objects
Most probably, your script references objects by index, and their indexes change after the web site has been modified. Due to this, TestComplete is unable to find correct objects. Please see the following FAQ entry for information on how to resolve this situation: