Telerik Test
Studio will not automatically handle the frames like some other tools handle
(Ex:Sahi). We have to specify explicitly
if the element belongs to frame. The most general problem which we will
face while dealing with frames and Ajax is synchronization problem. The general
mistake that most test developers tend to do is, we will write wait statements
on element and assume that the Page DOM will be refreshed until element is found.
We may not realise that between page and element we have a frame layer and only
DOM of the frame will be refreshed. More important thing we have to keep in mind is that, if we write
wait statement on element in the frame, then system will assume that frame is
loaded successfully. So if frame is not loaded then it will throw time out
exception. It is better to have wait statement on frame before wait statement on element
in the frame. Similarly, keep wait for Ajax on Ajax calls to avoid
synchronization problems.
No comments:
Post a Comment