Is it possible this stuff is created using ajax for you guys? If so you can use a sleep to wait for it to load and then check it with xpath. For example, I have an inputField that is loaded with ajax after clicking a button. If I have webtest click the button then set the inputField it will fail not being able to find the input field. But if I have webtest click the button sleep for 5 seconds then set the inputField it is able to find it as ajax loaded it while webtest was sleeping. Taken a step farther you can make a macro that takes an element and do a retry on the element sleeping between retries. Then all you have to do is pass a verifyXPath step for whatever will load with ajax to the macro and it will keep trying till it is loaded.
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Angel Merrett Sent: Thursday, October 08, 2009 7:07 AM To: [email protected]; tom hanekamp Subject: Re: [Webtest] Problem using Webtest and DOM tree's Tom - have you checked the source for the page to see if the item you are looking for actually does exist? If it doesn't exist in the source then it's likely dynamically created using javascript. I have the same issue and have not yet been able to resolve it so if you find a way, please share! :) Angel On Thu, Oct 8, 2009 at 6:05 AM, tom hanekamp <[email protected]> wrote: > Hi there > > Before I asign my problem, I must admit that I`m not a pro in webtest. > > The website or rather webapplication that I`m trying to test contains > a hierarchy of items coming from a database. The moment you click one of the > items, the page will show some textual information regarding the item you > click. > > The problem is that when I`m trying to get webtest to select one of the > items, so I can test if the webapplication does indeed display the right > information, I always get failed results saying they cannot find the item > within the page. > > Is there a way for me to have webtest reach these items? > > Many thanks > > Tom > > ________________________________ > What can you do with the new Windows Live? Find out -- Hanlon's Razor: ``Never attribute to malice that which can be adequately explained by stupidity''. _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

