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


Java FileSelect类代码示例

本文整理汇总了Java中com.redhat.darcy.ui.api.elements.FileSelect的典型用法代码示例。如果您正苦于以下问题:Java FileSelect类的具体用法?Java FileSelect怎么用?Java FileSelect使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


FileSelect类属于com.redhat.darcy.ui.api.elements包,在下文中一共展示了FileSelect类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: shouldSelectAFileSelect

import com.redhat.darcy.ui.api.elements.FileSelect; //导入依赖的package包/类
@Test
public void shouldSelectAFileSelect() {
    FileSelect shouldFind = mock(FileSelect.class);
    when(selection.elementOfType(FileSelect.class, By.id("test"))).thenReturn(shouldFind);

    assertSame(shouldFind, selection.fileSelect(By.id("test")));
}
 
开发者ID:darcy-framework,项目名称:darcy-ui,代码行数:8,代码来源:ElementSelectionTest.java

示例2: shouldSelectAListOfFileSelects

import com.redhat.darcy.ui.api.elements.FileSelect; //导入依赖的package包/类
@Test
public void shouldSelectAListOfFileSelects() {
    List<FileSelect> shouldFind = Arrays.asList(mock(FileSelect.class));
    when(selection.elementsOfType(FileSelect.class, By.id("test"))).thenReturn(shouldFind);

    assertSame(shouldFind, selection.fileSelects(By.id("test")));
}
 
开发者ID:darcy-framework,项目名称:darcy-ui,代码行数:8,代码来源:ElementSelectionTest.java

示例3: shouldSelectAListOfLabels

import com.redhat.darcy.ui.api.elements.FileSelect; //导入依赖的package包/类
@Test
public void shouldSelectAListOfLabels() {
    List<FileSelect> shouldFind = Arrays.asList(mock(FileSelect.class));
    when(selection.elementsOfType(FileSelect.class, By.id("test"))).thenReturn(shouldFind);

    assertSame(shouldFind, selection.fileSelects(By.id("test")));
}
 
开发者ID:darcy-framework,项目名称:darcy-ui,代码行数:8,代码来源:ElementSelectionTest.java

示例4: defaultMap

import com.redhat.darcy.ui.api.elements.FileSelect; //导入依赖的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

示例5: fileSelect

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

示例6: fileSelects

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

示例7: fileSelect

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

示例8: fileSelects

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


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