@BeforeClass public void setUp() { driver = DriverList.webDriverRun(); driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS); PageFactory.initElements(driver, LoginWebElements.class); PageFactory.initElements(driver, LogoutWebElements.class); }
@BeforeClass @Parameters({"LOGIN_PHONE_USER", "GLOBAL_PASSWORD"}) public void setUp(String username, String password) { driver = DriverList.androidDriverRun(); driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS); new SearchPageElements(driver); new LoginPageElements(driver); LoginPageElements.allinLogin(username, password); }