gpt4 book ai didi

com.atlassian.webdriver.pageobjects.WebDriverTester.gotoUrl()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-25 06:51:05 28 4
gpt4 key购买 nike

本文整理了Java中com.atlassian.webdriver.pageobjects.WebDriverTester.gotoUrl()方法的一些代码示例,展示了WebDriverTester.gotoUrl()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebDriverTester.gotoUrl()方法的具体详情如下:
包路径:com.atlassian.webdriver.pageobjects.WebDriverTester
类名称:WebDriverTester
方法名:gotoUrl

WebDriverTester.gotoUrl介绍

暂无

代码示例

代码示例来源:origin: com.atlassian.selenium/atlassian-webdriver-core

@Test
public void testVisitsHomePageAtDefaultBaseUrl() {
  goToHomePage();
  verify(tester).gotoUrl(urlCaptor.capture());
  assertThat(urlCaptor.getValue(), is(homePageAtHost(DEFAULT_HOST)));
}

代码示例来源:origin: com.atlassian.selenium/atlassian-webdriver-core

@Test
public void testVisitsHomePageAtBaseUrlForHost() {
  final String expectedHost = "mytenant";
  getProduct().setHost(expectedHost);
  goToHomePage();
  verify(tester).gotoUrl(urlCaptor.capture());
  assertThat(urlCaptor.getValue(), is(homePageAtHost(expectedHost)));
  final String actualHost = URI.create(urlCaptor.getValue()).getHost();
  assertThat(actualHost, is(expectedHost));
}

代码示例来源:origin: com.atlassian.confluence/confluence-webdriver-pageobjects

public void logOutFast() {
  webDriverTester.gotoUrl(getProductInstance().getBaseUrl() + "/plugins/functest/logout.action");
}

代码示例来源:origin: com.atlassian.confluence/confluence-webdriver-pageobjects

/**
 * Faster way of login when in testing environment by embedding the credentials in the url,
 * so we don't have to visit the login page every single time.
 */
public <M extends Page> M autoLoginEmbeddingCredentialsInUrl(UserWithDetails user, Class<M> destinationClass, Object... args) {
  checkNotNull(destinationClass);
  DelayedBinder<M> binder = pageBinder.delayedBind(destinationClass, args);
  M p = binder.get();
  checkNotNull(p);
  URI uriBuilder = UriBuilder.fromUri(productInstance.getBaseUrl() + p.getUrl())
      .queryParam("os_username", user.getUsername())
      .queryParam("os_password", user.getPassword())
      .build();
  webDriverTester.gotoUrl(uriBuilder.toString());
  return binder.bind();
}

代码示例来源:origin: com.atlassian.jira.plugins/jira-dvcs-connector-pageobjects

public <P> P visit(String url, Class<P> pageClass, Object... args) {
    jira.getTester().gotoUrl(url);
    return jira.getPageBinder().bind(pageClass, args);
  }
}

代码示例来源:origin: com.atlassian.jira.plugins/jira-dvcs-connector-pageobjects

public <P> P visit(String url, Class<P> pageClass) {
  jira.getTester().gotoUrl(url);
  return jira.getPageBinder().bind(pageClass);
}

代码示例来源:origin: com.atlassian.confluence/confluence-webdriver-pageobjects

public <P extends Page> P visitExternal(Class<P> pageClass, Object... args) {
  checkNotNull(pageClass);
  DelayedBinder<P> binder = pageBinder.delayedBind(pageClass, args);
  P p = binder.get();
  checkNotNull(p);
  String pageUrl = p.getUrl();
  try {
    getTester().gotoUrl(pageUrl);
  } catch (WebDriverException e) {
    throw new WebDriverException("Failed to load URL '" + pageUrl + "'", e);
  }
  return binder.bind();
}

代码示例来源:origin: com.atlassian.jira/atlassian-jira-pageobjects

public <P extends Page> DelayedBinder<P> visitDelayed(final Class<P> pageClass, final Object... args)
{
  final DelayedBinder<P> binder = pageBinder.delayedBind(pageClass, args);
  webDriverTester.gotoUrl(productInstance.getBaseUrl() + binder.get().getUrl());
  return binder;
}

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com