com.atlassian.jira.functest.framework.util.dom
Class SneakyDomExtractor

java.lang.Object
  extended by com.atlassian.jira.functest.framework.util.dom.SneakyDomExtractor

public class SneakyDomExtractor
extends Object

This gets around some of the limitations in HttpUnit such that the DOM is not cloneable even if it has a public accessor. So we do some jiggery pokery via reflection and get it anyway.

Since:
v3.13

Constructor Summary
SneakyDomExtractor()
           
 
Method Summary
static Document getDOM(net.sourceforge.jwebunit.WebTester tester)
          Returns the DOM Document associated with the current web page in the WebTester
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SneakyDomExtractor

public SneakyDomExtractor()
Method Detail

getDOM

public static Document getDOM(net.sourceforge.jwebunit.WebTester tester)
Returns the DOM Document associated with the current web page in the WebTester

Parameters:
tester - the web tester in question
Returns:
A Document or null if it cant be obtained


Copyright © 2002-2013 Atlassian. All Rights Reserved.