本文整理汇总了Java中org.fluentlenium.core.domain.FluentWebElement类的典型用法代码示例。如果您正苦于以下问题:Java FluentWebElement类的具体用法?Java FluentWebElement怎么用?Java FluentWebElement使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FluentWebElement类属于org.fluentlenium.core.domain包,在下文中一共展示了FluentWebElement类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: signupUser
import org.fluentlenium.core.domain.FluentWebElement; //导入依赖的package包/类
private void signupUser() {
goToLogin();
try {
final String migrationLightboxSelector = "#migration_lightbox";
final FluentWebElement migrationLightbox = browser.findFirst(migrationLightboxSelector);
migrationLightbox.find(".mfp-close").click();
browser.await().atMost(5L, TimeUnit.SECONDS).until(migrationLightboxSelector).areNotDisplayed();
} catch(final NoSuchElementException nsee) {
// migration lightbox was not shown, so we do not need to close it
}
browser.fill("input", withName("email")).with(EVENTBRITE_USER_EMAIL);
browser.fill("input", withName("password")).with(System.getenv("EVENTBRITE_USER_PASSWORD"));
browser.find("input", with("value").equalTo("Log in")).click();
browser.await().untilPage().isLoaded();
browser.await().atMost(5, TimeUnit.SECONDS).until("#access_choices_allow").areEnabled();
browser.find("#access_choices_allow").click();
browser.await().untilPage().isLoaded();
}
示例2: benenneKontoUm
import org.fluentlenium.core.domain.FluentWebElement; //导入依赖的package包/类
public void benenneKontoUm(final Integer kontoNummer, final String neuerKontoName) {
final FluentWebElement kontoElem =
find(".konto", withText().contains(kontoNummer.toString()))
.first();
kontoElem.findFirst(".btn-rename").click();
final KontoUmbenennenSeite kontoUmbenennenSeite = createPage(KontoUmbenennenSeite.class);
kontoUmbenennenSeite.für(kontoNummer).isAt();
kontoUmbenennenSeite.benenneKontoUmIn(neuerKontoName);
}
示例3: shouldListAllQualityProfiles
import org.fluentlenium.core.domain.FluentWebElement; //导入依赖的package包/类
@Test
public void shouldListAllQualityProfiles() throws IOException {
goTo(ADD_PROJECT_SITE);
FluentList<FluentWebElement> profileOptions = find("#profile > option");
assertThat(profileOptions).as("Site should contain all available quality profiles.").hasSize(3);
assertThat(profileOptions.get(0).getText()).isEqualTo("Default Profile");
assertThat(profileOptions.get(1).getText()).isEqualTo("first");
assertThat(profileOptions.get(2).getText()).isEqualTo("second");
}
示例4: shouldSelectFirstQualityProfileAutomatically
import org.fluentlenium.core.domain.FluentWebElement; //导入依赖的package包/类
@Test
public void shouldSelectFirstQualityProfileAutomatically() throws IOException {
goTo(ADD_PROJECT_SITE);
FluentList<FluentWebElement> profileOptions = find("#profile > option[selected]");
assertThat(profileOptions).as("Only one quality profile should be selected.").hasSize(1);
assertThat(profileOptions.get(0).getText()).isEqualTo("Default Profile");
}
示例5: shouldListAllSupportedCodeChangeProbabilityCalculationMethods
import org.fluentlenium.core.domain.FluentWebElement; //导入依赖的package包/类
@Test
public void shouldListAllSupportedCodeChangeProbabilityCalculationMethods() {
goTo(ADD_PROJECT_SITE);
FluentList<FluentWebElement> codeChangeMethodOptions = find("#codeMethod > option");
assertThat(codeChangeMethodOptions)
.as("Site should contain all supported methods for calculating code change probability.")
.hasSize(SupportedCodeChangeProbabilityMethod.values().length);
assertThat(codeChangeMethodOptions.get(0).getText()).isEqualTo("Default method");
assertThat(codeChangeMethodOptions.get(1).getText()).isEqualTo("Weighted method");
}
示例6: shouldSelectFirstSupportedCodeChangeProbabilityCalculationMethodAutomatically
import org.fluentlenium.core.domain.FluentWebElement; //导入依赖的package包/类
@Test
public void shouldSelectFirstSupportedCodeChangeProbabilityCalculationMethodAutomatically() throws IOException {
goTo(ADD_PROJECT_SITE);
FluentList<FluentWebElement> profileOptions = find("#codeMethod > option[selected]");
assertThat(profileOptions).as("Only one code change probability calculation method should be selected.").hasSize(1);
assertThat(profileOptions.get(0).getText()).isEqualTo("Default method");
}
示例7: shouldListAllSupportedScmSystems
import org.fluentlenium.core.domain.FluentWebElement; //导入依赖的package包/类
@Test
public void shouldListAllSupportedScmSystems() {
goTo(ADD_PROJECT_SITE);
FluentList<FluentWebElement> codeChangeMethodOptions = find("#scmSystem > option");
assertThat(codeChangeMethodOptions)
.as("Site should contain all supported SCM systems.")
.hasSize(SupportedScmSystem.values().length);
assertThat(codeChangeMethodOptions.get(0).getText()).isEqualTo(SupportedScmSystem.SVN.getName());
}
示例8: shouldSelectFirstSupportedScmSystemsAutomatically
import org.fluentlenium.core.domain.FluentWebElement; //导入依赖的package包/类
@Test
public void shouldSelectFirstSupportedScmSystemsAutomatically() throws IOException {
goTo(ADD_PROJECT_SITE);
FluentList<FluentWebElement> profileOptions = find("#scmSystem > option[selected]");
assertThat(profileOptions).as("Only one SCM system should be selected.").hasSize(1);
assertThat(profileOptions.get(0).getText()).isEqualTo(SupportedScmSystem.SVN.getName());
}
示例9: zeigtKonto
import org.fluentlenium.core.domain.FluentWebElement; //导入依赖的package包/类
public void zeigtKonto(final Integer kontoNummer, final String kontoName) {
final FluentWebElement kontoElem = find(".konto").first();
kontoElem.findFirst(".kontoNummer", withText(kontoNummer.toString()));
kontoElem.findFirst(".kontoName", withText(kontoName));
}