Package org.mozilla.zest.core.v1
Class ZestClientSwitchToFrame
- java.lang.Object
-
- org.mozilla.zest.core.v1.ZestElement
-
- org.mozilla.zest.core.v1.ZestStatement
-
- org.mozilla.zest.core.v1.ZestClient
-
- org.mozilla.zest.core.v1.ZestClientSwitchToFrame
-
public class ZestClientSwitchToFrame extends ZestClient
A class which allows you to get a session associated with a popup window
-
-
Field Summary
-
Fields inherited from class org.mozilla.zest.core.v1.ZestElement
JSON_ELEMENT_TYPE
-
-
Constructor Summary
Constructors Constructor Description ZestClientSwitchToFrame()ZestClientSwitchToFrame(String windowHandle, int index, String name, boolean parent)Only one of index, name or parent=true should be used
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZestStatementdeepCopy()Deep copy.intgetFrameIndex()StringgetFrameName()StringgetWindowHandle()Stringinvoke(ZestRuntime runtime)booleanisParent()booleanisPassive()Checks if is passive.voidsetFrameIndex(int index)voidsetFrameName(String name)voidsetParent(boolean parent)voidsetWindowHandle(String windowHandle)-
Methods inherited from class org.mozilla.zest.core.v1.ZestClient
isSameSubclass
-
Methods inherited from class org.mozilla.zest.core.v1.ZestStatement
getIndex, getNext, getPrevious, init, insertAfter, insertBefore, isEnabled, remove, setEnabled, setNext, setPrev
-
Methods inherited from class org.mozilla.zest.core.v1.ZestElement
getElementType, setElementType
-
-
-
-
Method Detail
-
getWindowHandle
public String getWindowHandle()
-
setWindowHandle
public void setWindowHandle(String windowHandle)
-
deepCopy
public ZestStatement deepCopy()
Description copied from class:ZestElementDeep copy.- Specified by:
deepCopyin classZestStatement- Returns:
- the zest element
-
getFrameIndex
public int getFrameIndex()
-
getFrameName
public String getFrameName()
-
isParent
public boolean isParent()
-
setFrameIndex
public void setFrameIndex(int index)
-
setFrameName
public void setFrameName(String name)
-
setParent
public void setParent(boolean parent)
-
isPassive
public boolean isPassive()
Description copied from class:ZestStatementChecks if is passive.- Specified by:
isPassivein classZestStatement- Returns:
- true, if is passive
-
invoke
public String invoke(ZestRuntime runtime) throws ZestClientFailException
- Specified by:
invokein classZestClient- Throws:
ZestClientFailException
-
-