public class HtmlTestDomainImplementation extends TestDomainImplementation
TestDomain
implementation for HTML. Access to specific browsers
is provided by a native implementation of the domain, which is exposed by using a handle
to a native interface.Modifier and Type | Class and Description |
---|---|
class |
HtmlTestDomainImplementation.FlexChannelElementInfo |
class |
HtmlTestDomainImplementation.GetFlexWindowHandleRunnable |
Modifier and Type | Field and Description |
---|---|
boolean |
ChromeNativeEnabled |
protected static FtDebug |
debug |
static java.lang.String |
DOJO_SUB_DOMAIN_NAME |
java.util.Vector |
htmlsubdomainInstancess |
java.util.Hashtable |
htmlsubdomains |
boolean |
isEdge |
boolean |
JSApproachEnabled |
java.util.HashMap |
JshandleMap |
java.util.ArrayList |
jsPropexclusionList |
IBrowserCommunicator |
jsWrapperProxy |
static java.lang.String |
NAME |
IBrowserCommunicator |
webguiCommunicator |
Constructor and Description |
---|
HtmlTestDomainImplementation() |
HtmlTestDomainImplementation(long nativeHandle) |
Modifier and Type | Method and Description |
---|---|
void |
createTestContext() |
void |
disableAllCustomDomains() |
void |
disableCustomDomain(java.lang.String domainName) |
void |
disableCustomDomains(java.lang.String[] domainNames) |
void |
enableAllCustomDomains() |
void |
enableCustomDomain(java.lang.String domainName) |
void |
enableCustomDomains(java.lang.String[] domainNames) |
int |
getActionRecordingFlags()
Returns bits that control the recording of actions.
|
ProxyTestObject |
getCustomProxy(long nativeHandle,
IChannel channel,
java.lang.String customObjectClass,
CachedData cachedData) |
ProxyTestObject |
getDescribedObject(DescribedObject describedObject)
Find the object described by the set of properties in the DescribedObject.
|
ProxyTestObject |
getDojoProxy(long nativeHandle,
IChannel channel,
IBrowserCommunicator jswrap)
Creates the proxy that handles the object indicated by the
nativeHandle . |
DomainProxy |
getDomainProxy()
Returns the proxy for this domain object.
|
java.lang.Object |
getFlexFireFoxWindowHandle(java.lang.String playerId,
long browserHwnd,
long serverExplorerHwnd) |
java.lang.Object |
getFlexWindowHandle(java.lang.String playerId,
long browserHwnd,
long serverExplorerHwnd) |
HtmlTestSubDomainImplementation |
getHtmlTestSubDomainObject(HtmlTestDomainImplementation domain,
java.lang.String domainClassName) |
java.lang.String |
getImplementationName()
Returns the name of the domain implementation.
|
java.lang.String |
getMyBrowserName() |
long |
getNativeHandle() |
ProxyTestObject |
getProxy(long nativeHandle,
IChannel channel,
IBrowserCommunicator jswrap) |
ProxyTestObject |
getProxy(long nativeHandle,
IChannel channel,
IBrowserCommunicator jswrap,
boolean includeCustomProxies)
Creates the proxy that handles the object indicated by the
nativeHandle . |
ProxyTestObject |
getProxy(long nativeHandle,
long docHandle,
IChannel channel,
IBrowserCommunicator jswrap,
boolean includeCustomProxies) |
ProxyTestObject |
getProxy(java.lang.Object theObject)
Returns a proxy object for the specified object.
|
java.lang.String |
getTargetDomain(Window win) |
ProxyTestObject |
getTopLevelObject(Window window)
Returns the
topLevelObject that matches the specified window. |
ProxyTestObject |
getTopLevelObject(Window window,
Window pointWindow) |
java.util.Enumeration |
getTopLevelObjects()
Returns an enumeration of top-level objects in this domain.
|
void |
HtmlTestDomainImplementationInit(long nativeHandle)
Constructor using specific native domain implementation.
|
void |
initWebGUIPlayback() |
boolean |
isChromeDocumentWindow(Window window) |
boolean |
isDomainEnabled(java.lang.String domainName) |
boolean |
isIEBrowser() |
boolean |
isJswindow(Window window) |
boolean |
isMyBrowserFirefox() |
boolean |
isNativeMessagingEnabled()
This would be true for the approaches where we use Native Messaging
to communicate with the browser.(i.e NON-Applet approach)
|
void |
onEmbeddedBrowserDestroyed(int browserHandle) |
java.util.ArrayList |
populatExclusionList() |
void |
registerProxies(java.util.Enumeration proxies)
Registers proxies for this domain implementation.
|
void |
setNativeHandle(long nativeHandle) |
equals, find, supportVOMOptimization
getName, isGraphical, isNamed
protected static FtDebug debug
public static final java.lang.String NAME
public static java.lang.String DOJO_SUB_DOMAIN_NAME
public java.util.Vector htmlsubdomainInstancess
public java.util.Hashtable htmlsubdomains
public IBrowserCommunicator jsWrapperProxy
public boolean JSApproachEnabled
public boolean ChromeNativeEnabled
public boolean isEdge
public java.util.HashMap JshandleMap
public java.util.ArrayList jsPropexclusionList
public IBrowserCommunicator webguiCommunicator
public HtmlTestDomainImplementation()
public HtmlTestDomainImplementation(long nativeHandle)
public long getNativeHandle()
public void setNativeHandle(long nativeHandle)
public void initWebGUIPlayback()
public void createTestContext()
public java.util.ArrayList populatExclusionList()
public void HtmlTestDomainImplementationInit(long nativeHandle)
nativeHandle
- Handle to native interface for the domain implementation.public HtmlTestSubDomainImplementation getHtmlTestSubDomainObject(HtmlTestDomainImplementation domain, java.lang.String domainClassName)
public ProxyTestObject getDescribedObject(DescribedObject describedObject)
TestDomainImplementation
getDescribedObject
in class TestDomainImplementation
public final java.lang.String getImplementationName()
getImplementationName
in class TestDomainImplementation
public boolean isIEBrowser()
public int getActionRecordingFlags()
getActionRecordingFlags
in class TestDomainImplementation
public final ProxyTestObject getProxy(java.lang.Object theObject)
null
object should be returned.getProxy
in class TestDomainImplementation
theObject
- The object to return a proxy object for.public ProxyTestObject getProxy(long nativeHandle, long docHandle, IChannel channel, IBrowserCommunicator jswrap, boolean includeCustomProxies)
public ProxyTestObject getProxy(long nativeHandle, IChannel channel, IBrowserCommunicator jswrap, boolean includeCustomProxies)
nativeHandle
.nativeHandle
- Handle to native interface for HTML Objectchannel
- Channel on which native interface is called.public ProxyTestObject getProxy(long nativeHandle, IChannel channel, IBrowserCommunicator jswrap)
public ProxyTestObject getDojoProxy(long nativeHandle, IChannel channel, IBrowserCommunicator jswrap)
nativeHandle
.nativeHandle
- Handle to native interface for HTML Objectchannel
- Channel on which native interface is called.public ProxyTestObject getCustomProxy(long nativeHandle, IChannel channel, java.lang.String customObjectClass, CachedData cachedData)
public final DomainProxy getDomainProxy()
getDomainProxy
in class TestDomainImplementation
public final void registerProxies(java.util.Enumeration proxies)
registerProxies
in class TestDomainImplementation
public ProxyTestObject getTopLevelObject(Window window, Window pointWindow)
getTopLevelObject
in class TestDomainImplementation
public boolean isChromeDocumentWindow(Window window)
public ProxyTestObject getTopLevelObject(Window window)
TestDomainImplementation
topLevelObject
that matches the specified window.
This method should throw an exception if the domain is not
graphical. If the Window cannot be matched, a value of null
should be returned.getTopLevelObject
in class TestDomainImplementation
window
- The window object to match.null
if not found.public boolean isJswindow(Window window)
public java.util.Enumeration getTopLevelObjects()
getTopLevelObjects
in class TestDomainImplementation
public java.lang.String getTargetDomain(Window win)
public java.lang.Object getFlexWindowHandle(java.lang.String playerId, long browserHwnd, long serverExplorerHwnd)
public java.lang.Object getFlexFireFoxWindowHandle(java.lang.String playerId, long browserHwnd, long serverExplorerHwnd)
public boolean isDomainEnabled(java.lang.String domainName)
public void disableCustomDomain(java.lang.String domainName)
public void enableCustomDomain(java.lang.String domainName)
public void disableAllCustomDomains()
public void enableAllCustomDomains()
public void enableCustomDomains(java.lang.String[] domainNames)
public void disableCustomDomains(java.lang.String[] domainNames)
public void onEmbeddedBrowserDestroyed(int browserHandle)
public java.lang.String getMyBrowserName()
public boolean isMyBrowserFirefox()
public boolean isNativeMessagingEnabled()