* Returns a list containing all the frames (from frame and iframe tags) in this page.
* @return a list of {@link FrameWindow}
*/
public List<FrameWindow> getFrames() {
final List<FrameWindow> list = new ArrayList<FrameWindow>();
final WebWindow enclosingWindow = getEnclosingWindow();
for (final WebWindow window : getWebClient().getWebWindows()) {
// quite strange but for a TopLevelWindow parent == self
if (enclosingWindow == window.getParentWindow()
&& enclosingWindow != window) {
list.add((FrameWindow) window);