[3789] | 1 | package org.expressolivre.cte.common; |
---|
| 2 | |
---|
[4344] | 3 | import org.expressolivre.cte.pages.email.ExpressoMailAdminPreferencesPage; |
---|
[3789] | 4 | import org.expressolivre.cte.pages.email.ExpressoMailPreferencesPage; |
---|
| 5 | import org.openqa.selenium.support.PageFactory; |
---|
| 6 | |
---|
| 7 | /** |
---|
| 8 | * @author L.F.Estivalet (Serpro) |
---|
| 9 | * |
---|
| 10 | * Created on Feb 18, 2011 at 2:26:23 PM |
---|
| 11 | * |
---|
| 12 | */ |
---|
| 13 | public class PreferencesTestCase extends BaseTestCase { |
---|
| 14 | |
---|
| 15 | /** |
---|
| 16 | * Abre pagina de preferencias do modulo ExpressoMail |
---|
| 17 | * |
---|
| 18 | * @return |
---|
| 19 | */ |
---|
| 20 | public ExpressoMailPreferencesPage openEmailPreferencesPage() { |
---|
| 21 | driver.get(URL_PREFERENCES_EMAIL); |
---|
| 22 | return PageFactory.initElements(driver, |
---|
| 23 | ExpressoMailPreferencesPage.class); |
---|
| 24 | } |
---|
| 25 | |
---|
[4344] | 26 | /** |
---|
| 27 | * Abre pagina de preferencias administrativas do modulo ExpressoMail. |
---|
| 28 | * |
---|
| 29 | * @return |
---|
| 30 | */ |
---|
| 31 | public ExpressoMailAdminPreferencesPage openEmailAdminPreferencesPage() { |
---|
| 32 | driver.get(URL_PREFERENCES_EMAIL); |
---|
| 33 | return PageFactory.initElements(driver, |
---|
| 34 | ExpressoMailAdminPreferencesPage.class); |
---|
| 35 | } |
---|
| 36 | |
---|
| 37 | /** |
---|
| 38 | * Abre pagina de preferencias administrativas do modulo ExpressoMail. |
---|
| 39 | * |
---|
| 40 | * @return |
---|
| 41 | */ |
---|
| 42 | public ExpressoMailAdminPreferencesPage openEmailAdminDefaultPreferencesPage() { |
---|
| 43 | driver.get(URL_DEFAULT_PREFERENCES_EMAIL); |
---|
| 44 | return PageFactory.initElements(driver, |
---|
| 45 | ExpressoMailAdminPreferencesPage.class); |
---|
| 46 | } |
---|
| 47 | |
---|
| 48 | /** |
---|
| 49 | * Abre pagina de preferencias administrativas do modulo ExpressoMail. |
---|
| 50 | * |
---|
| 51 | * @return |
---|
| 52 | */ |
---|
| 53 | public ExpressoMailAdminPreferencesPage openEmailAdminForcedPreferencesPage() { |
---|
| 54 | driver.get(URL_FORCED_PREFERENCES_EMAIL); |
---|
| 55 | return PageFactory.initElements(driver, |
---|
| 56 | ExpressoMailAdminPreferencesPage.class); |
---|
| 57 | } |
---|
| 58 | |
---|
[3789] | 59 | } |
---|