Package org.zkoss.test.webdriver.ztl
Class ClientWidget
- java.lang.Object
-
- org.openqa.selenium.By
-
- org.zkoss.test.webdriver.ztl.ClientWidget
-
-
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, org.openqa.selenium.By.Remotable
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringBuffer_out
-
Constructor Summary
Constructors Constructor Description ClientWidget()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.Stringeval(java.lang.String script)Returns the result of the evaluation, if any.java.lang.Stringeval(java.lang.String script, boolean withDot)Returns the result of the evaluation, if any.java.util.List<org.openqa.selenium.WebElement>findElements(org.openqa.selenium.SearchContext context)static booleanisBlank(java.lang.String s)Returns true if the string is null or empty or pure blank.static booleanisEmpty(java.lang.String s)Returns true if the string is null or empty.abstract org.openqa.selenium.BytoBy()Returns the element as By element, if possible.abstract ElementtoElement()Returns the element from this client widget.java.lang.StringtoLocator()Returns the evaluation string that is JavaScript format.java.lang.StringtoString()Returns the evaluation string that is JavaScript format.protected java.lang.StringtoUpperCase(java.lang.String key, java.lang.String name)Returns the string that the first word of the name is upper case.
-
-
-
Method Detail
-
isEmpty
public static final boolean isEmpty(java.lang.String s)
Returns true if the string is null or empty.
-
isBlank
public static final boolean isBlank(java.lang.String s)
Returns true if the string is null or empty or pure blank.
-
toUpperCase
protected java.lang.String toUpperCase(java.lang.String key, java.lang.String name)Returns the string that the first word of the name is upper case.- Parameters:
key- the prefix of the method name. Likesetandgetname- the name of the method.
-
eval
public java.lang.String eval(java.lang.String script)
Returns the result of the evaluation, if any.- Parameters:
script- the JavaScript code- See Also:
eval(String, boolean)
-
eval
public java.lang.String eval(java.lang.String script, boolean withDot)Returns the result of the evaluation, if any.- Parameters:
script- The JavaScript codewithDot- if true, the dot '.' is added before the script.
-
toLocator
public java.lang.String toLocator()
Returns the evaluation string that is JavaScript format.
-
toString
public java.lang.String toString()
Returns the evaluation string that is JavaScript format.- Overrides:
toStringin classorg.openqa.selenium.By
-
toElement
public abstract Element toElement()
Returns the element from this client widget.
-
toBy
public abstract org.openqa.selenium.By toBy()
Returns the element as By element, if possible.
-
findElements
public java.util.List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.SearchContext context)
- Specified by:
findElementsin classorg.openqa.selenium.By
-
-