|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openqa.selenium.By
org.zkoss.ztl.ClientWidget
org.zkoss.ztl.Element
public class Element
A simulator of DOM element object.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.openqa.selenium.By |
---|
org.openqa.selenium.By.ByClassName, org.openqa.selenium.By.ByCssSelector, org.openqa.selenium.By.ById, org.openqa.selenium.By.ByLinkText, org.openqa.selenium.By.ByName, org.openqa.selenium.By.ByPartialLinkText, org.openqa.selenium.By.ByTagName, org.openqa.selenium.By.ByXPath |
Field Summary |
---|
Fields inherited from class org.zkoss.ztl.ClientWidget |
---|
_out |
Constructor Summary | |
---|---|
Element(java.lang.String script)
|
|
Element(java.lang.StringBuffer out)
|
Method Summary | |
---|---|
boolean |
exists()
Returns whether the element exists or not. |
Element |
firstChild()
Returns the firstChild of the element. |
java.lang.String |
get(java.lang.String name)
Returns the result of the evaluated name. |
boolean |
is(java.lang.String name)
Returns the boolean value of the evaluated name. |
Element |
nextSibling()
Returns the nextSibling of the element. |
Element |
parentNode()
Returns the parentNode of the element. |
void |
set(java.lang.String name,
boolean value)
Sets the boolean value to the evaluated name. |
void |
set(java.lang.String name,
int value)
Sets the number value to the evaluated name. |
void |
set(java.lang.String name,
java.lang.String value)
Sets the string value to the evaluated name. |
org.openqa.selenium.By |
toBy()
Returns the element as By element, if possible. |
Element |
toElement()
Returns the element from this client widget. |
Methods inherited from class org.zkoss.ztl.ClientWidget |
---|
eval, eval, findElements, isBlank, isEmpty, toLocator, toString, toUpperCase |
Methods inherited from class org.openqa.selenium.By |
---|
className, cssSelector, equals, findElement, hashCode, id, linkText, name, partialLinkText, tagName, xpath |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Element(java.lang.String script)
public Element(java.lang.StringBuffer out)
Method Detail |
---|
public void set(java.lang.String name, java.lang.String value)
For example,
ele.set("style.display", "none");
name
- any attribute of the element.public void set(java.lang.String name, boolean value)
For example,
ele.set("checked", false);
name
- any attribute of the element.value
- true or false.public void set(java.lang.String name, int value)
For example,
ele.set("style.top", 12);
name
- any attribute of the element.value
- any number.public java.lang.String get(java.lang.String name)
For example,
ele.get("name");
if the ele.name is "myname",
the result is "myname" being returned.
name
- any attribute of the element.public boolean is(java.lang.String name)
For example,
ele.is("name");
if the ele.name is "true",
the result is true. Otherwise, false is assumed.
name
- any attribute of the element.
public Element parentNode()
public Element firstChild()
public Element nextSibling()
public boolean exists()
public Element toElement()
ClientWidget
toElement
in class ClientWidget
public org.openqa.selenium.By toBy()
ClientWidget
toBy
in class ClientWidget
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |