本文整理汇总了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();
}
开发者ID:Vadus,项目名称:songs_play,代码行数:21,代码来源:EventbriteOAuth2Test.java
示例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);
}
开发者ID:KyleRogers,项目名称:cylus,代码行数:13,代码来源:Kontenplan.java
示例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");
}
开发者ID:CodeQInvest,项目名称:codeq-invest,代码行数:10,代码来源:CreateProjectControllerIntegrationTest.java
示例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");
}
开发者ID:CodeQInvest,项目名称:codeq-invest,代码行数:8,代码来源:CreateProjectControllerIntegrationTest.java
示例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");
}
开发者ID:CodeQInvest,项目名称:codeq-invest,代码行数:11,代码来源:CreateProjectControllerIntegrationTest.java
示例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");
}
开发者ID:CodeQInvest,项目名称:codeq-invest,代码行数:8,代码来源:CreateProjectControllerIntegrationTest.java
示例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());
}
开发者ID:CodeQInvest,项目名称:codeq-invest,代码行数:10,代码来源:CreateProjectControllerIntegrationTest.java
示例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());
}
开发者ID:CodeQInvest,项目名称:codeq-invest,代码行数:8,代码来源:CreateProjectControllerIntegrationTest.java
示例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));
}
开发者ID:KyleRogers,项目名称:cylus,代码行数:7,代码来源:Kontenplan.java
注:本文中的org.fluentlenium.core.domain.FluentWebElement类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论