java
private BoxDriver baseDriver = null;
private String baseUrl = null;
private LoginPage loginPage = null;
private AdminPage adminPage = null;
调用各种页面(pages)
this.loginPage = new LoginPage(this.baseDriver);
this.adminPage = new AdminPage(this.baseDriver);
使用page的对象,调用成员方法
java
loginPage.open(this.baseUrl);
loginPage.changeLanguage(lang);
loginPage.login("admin", "123456", true);
loginPage.selectApp(AppType.Admin);
adminPage.clickAddMemberButton();
adminPage.addMemberData(member);
原文转自:http://gitbook.cn/books/58e54b57cfcd6fa52dcef1d2/index.html