本文整理汇总了Java中com.redhat.darcy.web.api.elements.HtmlElement类的典型用法代码示例。如果您正苦于以下问题:Java HtmlElement类的具体用法?Java HtmlElement怎么用?Java HtmlElement使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
HtmlElement类属于com.redhat.darcy.web.api.elements包,在下文中一共展示了HtmlElement类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: defaultMap
import com.redhat.darcy.web.api.elements.HtmlElement; //导入依赖的package包/类
/**
* Defaults to standard, WebDriver compatible element implementations. If a particular browser's
* driver has some quirk, it is encouraged that that browser factory override a relevant element
* type with it's own implementation. When overriding element types, <strong>favor overriding
* the most specific type (i.e. HtmlTextInput instead of TextInput).</strong> By default,
* less specific element types will simply point to the more specific version. That is, if a
* client asks for a TextInput, the default map will look up whatever implementation is
* registered for HtmlTextInput. If the HtmlTextInput implementation is updated, TextInput will
* consume that updated implementation. This way, a browser factory need not override every
* interface that may point to the
*/
public static ElementConstructorMap defaultMap() {
ElementConstructorMap map = new ElementConstructorMap();
map.put(HtmlTextInput.class, WebDriverTextInput::new);
map.put(HtmlButton.class, WebDriverButton::new);
map.put(HtmlLink.class, WebDriverLink::new);
map.put(HtmlSelect.class, WebDriverSelect::new);
map.put(HtmlSelectOption.class, WebDriverSelectOption::new);
map.put(HtmlLabel.class, WebDriverLabel::new);
map.put(HtmlText.class, WebDriverText::new);
map.put(HtmlFileSelect.class, WebDriverFileSelect::new);
map.put(HtmlRadio.class, WebDriverRadio::new);
map.put(HtmlCheckbox.class, WebDriverCheckbox::new);
map.put(HtmlMultiSelect.class, WebDriverMultiSelect::new);
map.put(HtmlElement.class, WebDriverElement::new);
map.point(TextInput.class, HtmlTextInput.class);
map.point(Button.class, HtmlButton.class);
map.point(Link.class, HtmlLink.class);
map.point(Select.class, HtmlSelect.class);
map.point(SelectOption.class, HtmlSelectOption.class);
map.point(Label.class, HtmlLabel.class);
map.point(Text.class, HtmlText.class);
map.point(FileSelect.class, HtmlFileSelect.class);
map.point(Radio.class, HtmlRadio.class);
map.point(Checkbox.class, HtmlCheckbox.class);
map.point(MultiSelect.class, HtmlMultiSelect.class);
map.point(Element.class, HtmlElement.class);
return map;
}
示例2: htmlElement
import com.redhat.darcy.web.api.elements.HtmlElement; //导入依赖的package包/类
public static HtmlElement htmlElement(Locator locator) {
return element(HtmlElement.class, locator);
}
示例3: htmlElements
import com.redhat.darcy.web.api.elements.HtmlElement; //导入依赖的package包/类
public static List<HtmlElement> htmlElements(Locator locator) {
return elements(HtmlElement.class, locator);
}
示例4: htmlElement
import com.redhat.darcy.web.api.elements.HtmlElement; //导入依赖的package包/类
default HtmlElement htmlElement(Locator locator) {
return elementOfType(HtmlElement.class, locator);
}
示例5: htmlElements
import com.redhat.darcy.web.api.elements.HtmlElement; //导入依赖的package包/类
default List<HtmlElement> htmlElements(Locator locator) {
return elementsOfType(HtmlElement.class, locator);
}
示例6: JQueryDataTable
import com.redhat.darcy.web.api.elements.HtmlElement; //导入依赖的package包/类
/**
* @param parent Locator for the wrapper div around the table element.
*/
// TODO: It would be nice if clients could just locate their table and not the wrapper div
// that jquery datatable plugin generates.
public JQueryDataTable(Locator parent) {
super(HtmlElement.class, parent);
}
示例7: HtmlTable
import com.redhat.darcy.web.api.elements.HtmlElement; //导入依赖的package包/类
public HtmlTable(Locator parent) { super(HtmlElement.class, parent); }