我从方法isLoaded()
中获得了Assert的结果org.junit.ComparisonFailure: expected:<"[Problem loading page]"> but was:<"[Admin - Beleza na web]">
我认为这可能与url包含哈希的事实有关,但我不确定。
protected String title = "Admin - Beleza na web";
@Override
public void load() {
driver.get(url);
}
@Override
public void isLoaded() {
assertThat(title).isEqualTo(driver.getTitle());
}