| 限定符和类型 | 字段和说明 |
|---|---|
private org.openqa.selenium.interactions.Actions |
actions |
private IBrowser |
browser |
private org.openqa.selenium.WebElement |
element |
private String |
id |
private String |
Locate |
private org.slf4j.Logger |
logger |
| 构造器和说明 |
|---|
CauliElement(IBrowser browser) |
CauliElement(IBrowser browser,
String location) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
assertAttribute(String attr,
String value) |
void |
assertEditable() |
void |
assertIsExist() |
void |
assertNotEditable() |
void |
assertSelected() |
void |
assertText(String text) |
void |
assertValue(String value) |
IElement |
child(String location) |
IElement |
child(String location,
int index) |
CauliElements |
children(String location) |
IElement |
clear() |
void |
click() |
void |
contextClick() |
void |
doubleClick() |
void |
dragAndDrop(IElement e) |
void |
dragAndDrop(org.openqa.selenium.Point point) |
IElement |
find(String location) |
<T> T |
find(String location,
Class<T> tClass) |
void |
focus() |
String |
getAttribute(String attr) |
IBrowser |
getBrowser() |
String |
getCssValue(String name) |
org.openqa.selenium.WebElement |
getElement() |
String |
getId() |
String |
getLocate() |
org.openqa.selenium.Point |
getLocation() |
int[] |
getSize() |
String |
getTagName() |
String |
getText() |
void |
input(String text) |
boolean |
isDisplay() |
boolean |
isEnable() |
boolean |
isExist() |
boolean |
isSelected() |
protected org.openqa.selenium.WebElement |
jquery(String jquery) |
void |
keyDown(org.openqa.selenium.Keys key) |
void |
keyPress(org.openqa.selenium.Keys key) |
void |
keyPress(String keys) |
void |
keyUp(org.openqa.selenium.Keys key) |
void |
leftDown() |
void |
leftUp() |
private void |
locateInit() |
void |
mouseOver() |
void |
release() |
void |
scroll() |
void |
setElement(org.openqa.selenium.WebElement element) |
void |
setId(String id) |
void |
setLocate(String locate) |
void |
submit() |
private org.slf4j.Logger logger
private IBrowser browser
private org.openqa.selenium.WebElement element
private org.openqa.selenium.interactions.Actions actions
private String id
private String Locate
public CauliElement(IBrowser browser)
public void setLocate(String locate)
protected org.openqa.selenium.WebElement jquery(String jquery)
public void doubleClick()
doubleClick 在接口中 IElementpublic void assertAttribute(String attr, String value)
assertAttribute 在接口中 IElementpublic void assertEditable()
assertEditable 在接口中 IElementpublic void assertNotEditable()
assertNotEditable 在接口中 IElementpublic void assertSelected()
assertSelected 在接口中 IElementpublic void assertIsExist()
assertIsExist 在接口中 IElementpublic void assertText(String text)
assertText 在接口中 IElementpublic void assertValue(String value)
assertValue 在接口中 IElementpublic String getAttribute(String attr)
getAttribute 在接口中 IElementpublic String getCssValue(String name)
getCssValue 在接口中 IElementpublic org.openqa.selenium.Point getLocation()
getLocation 在接口中 IElementpublic String getTagName()
getTagName 在接口中 IElementpublic boolean isSelected()
isSelected 在接口中 IElementpublic void dragAndDrop(IElement e)
dragAndDrop 在接口中 IElementpublic void dragAndDrop(org.openqa.selenium.Point point)
dragAndDrop 在接口中 IElementprivate void locateInit()
public IBrowser getBrowser()
public org.openqa.selenium.WebElement getElement()
getElement 在接口中 IElementpublic CauliElements children(String location)
public void contextClick()
contextClick 在接口中 IElementpublic void setElement(org.openqa.selenium.WebElement element)
setElement 在接口中 IElementCopyright © 2014. All rights reserved.