当前位置: 首页>>代码示例>>Java>>正文


Java HtmlElement类代码示例

本文整理汇总了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;
}
 
开发者ID:darcy-framework,项目名称:darcy-webdriver,代码行数:43,代码来源:ElementConstructorMap.java

示例2: htmlElement

import com.redhat.darcy.web.api.elements.HtmlElement; //导入依赖的package包/类
public static HtmlElement htmlElement(Locator locator) {
    return element(HtmlElement.class, locator);
}
 
开发者ID:darcy-framework,项目名称:darcy-web,代码行数:4,代码来源:HtmlElements.java

示例3: htmlElements

import com.redhat.darcy.web.api.elements.HtmlElement; //导入依赖的package包/类
public static List<HtmlElement> htmlElements(Locator locator) {
    return elements(HtmlElement.class, locator);
}
 
开发者ID:darcy-framework,项目名称:darcy-web,代码行数:4,代码来源:HtmlElements.java

示例4: htmlElement

import com.redhat.darcy.web.api.elements.HtmlElement; //导入依赖的package包/类
default HtmlElement htmlElement(Locator locator) {
    return elementOfType(HtmlElement.class, locator);
}
 
开发者ID:darcy-framework,项目名称:darcy-web,代码行数:4,代码来源:WebSelection.java

示例5: htmlElements

import com.redhat.darcy.web.api.elements.HtmlElement; //导入依赖的package包/类
default List<HtmlElement> htmlElements(Locator locator) {
    return elementsOfType(HtmlElement.class, locator);
}
 
开发者ID:darcy-framework,项目名称:darcy-web,代码行数:4,代码来源:WebSelection.java

示例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);
}
 
开发者ID:darcy-framework,项目名称:darcy-web,代码行数:9,代码来源:JQueryDataTable.java

示例7: HtmlTable

import com.redhat.darcy.web.api.elements.HtmlElement; //导入依赖的package包/类
public HtmlTable(Locator parent) { super(HtmlElement.class, parent); } 
开发者ID:darcy-framework,项目名称:darcy-web,代码行数:2,代码来源:HtmlTable.java


注:本文中的com.redhat.darcy.web.api.elements.HtmlElement类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。