當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。