Package org.zkoss.test.webdriver.ztl
Class ClientWidget
java.lang.Object
org.openqa.selenium.By
org.zkoss.test.webdriver.ztl.ClientWidget
public abstract class ClientWidget
extends org.openqa.selenium.By
The skeleton of ZK client side widget. It is used to manipulate a string buffer
to concatenate an executed JavaScript code.
- Author:
- jumperchen
-
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the result of the evaluation, if any.Returns the result of the evaluation, if any.List<org.openqa.selenium.WebElement>findElements(org.openqa.selenium.SearchContext context) static final booleanReturns true if the string is null or empty or pure blank.static final booleanReturns true if the string is null or empty.abstract org.openqa.selenium.BytoBy()Returns the element as By element, if possible.abstract ElementReturns the element from this client widget.Returns the evaluation string that is JavaScript format.toString()Returns the evaluation string that is JavaScript format.protected StringtoUpperCase(String key, String name) Returns the string that the first word of the name is upper case.Methods inherited from class org.openqa.selenium.By
className, cssSelector, equals, findElement, getJavascriptExecutor, getWebDriver, hashCode, id, linkText, name, partialLinkText, tagName, xpath
-
Field Details
-
_out
-
-
Constructor Details
-
ClientWidget
public ClientWidget()
-
-
Method Details
-
isEmpty
Returns true if the string is null or empty. -
isBlank
Returns true if the string is null or empty or pure blank. -
toUpperCase
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
Returns the result of the evaluation, if any.- Parameters:
script- the JavaScript code- See Also:
-
eval
Returns the result of the evaluation, if any.- Parameters:
script- The JavaScript codewithDot- if true, the dot '.' is added before the script.
-
toLocator
Returns the evaluation string that is JavaScript format. -
toString
Returns the evaluation string that is JavaScript format.- Overrides:
toStringin classorg.openqa.selenium.By
-
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
- Specified by:
findElementsin classorg.openqa.selenium.By
-