资 源 简 介
Polonium-Webdriver is extension of polonium core (http://code.google.com/p/polonium-framework), which makes framework much more usefull. See how easly you may combine given/when/then pattern with page-object pattern, and create perfectly clear and simple tests.
Code example:
```
@DetailedDescription
@TargetBrowser({ IEXPLORER, FIREFOX })
public class SearchTest extends PoloniumWebdriver{
@Given("main page")
@When("enter phase and click search")
@Then("at least one result is displayed")
@Test
public void shouldDisplaySomeResults(){
MainPage mainPage = new MainPage();
SearchResultsPage searchResultsPage = mainPage
.fillSearchField()
.clickSearchButton();
assertTrue(searchResultsPage.isAnyResultDisplayed());
}
}
```
Simple result example in Eclipse:
请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报