Package com.atlassian.jira.pageobjects
Class JiraTestedProduct
java.lang.Object
com.atlassian.jira.pageobjects.JiraTestedProduct
- All Implemented Interfaces:
com.atlassian.pageobjects.TestedProduct<com.atlassian.webdriver.pageobjects.WebDriverTester>
public class JiraTestedProduct
extends Object
implements com.atlassian.pageobjects.TestedProduct<com.atlassian.webdriver.pageobjects.WebDriverTester>
JIRA implementation of
TestedProduct
.- Since:
- 4.4
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJiraTestedProduct
(com.atlassian.pageobjects.ProductInstance productInstance) JiraTestedProduct
(com.atlassian.pageobjects.TestedProductFactory.TesterFactory<com.atlassian.webdriver.pageobjects.WebDriverTester> testerFactory, com.atlassian.pageobjects.ProductInstance productInstance) -
Method Summary
Modifier and TypeMethodDescriptionbackdoor()
clickWithBadXsrfToken
(com.atlassian.pageobjects.elements.PageElement toClick) Replace 'atl_token' in 'href' of a given element to invalid one and click the element.<P extends com.atlassian.pageobjects.Page>
PclickWithBadXsrfToken
(com.atlassian.pageobjects.elements.PageElement toClick, Class<P> expectedTargetPage, Object... pageArgs) Replace 'atl_token' in 'href' of a given element to invalid one and click the element.protected String
getEnvironmentProperty
(String key, String defaultValue) protected String
getEnvironmentProperty
(String key, String defaultValue, boolean allowEmpty) com.atlassian.pageobjects.PageBinder
com.atlassian.pageobjects.ProductInstance
com.atlassian.webdriver.pageobjects.WebDriverTester
<P extends com.atlassian.pageobjects.Page>
PSynonym forvisit(Class, Object...)
.goToViewIssue
(String issueKey) com.atlassian.pageobjects.inject.InjectionContext
injector()
boolean
logout()
void
quickLogin
(String username, String password) <P extends com.atlassian.pageobjects.Page>
PquickLogin
(String username, String password, Class<P> pageClass, Object... args) void
<P extends com.atlassian.pageobjects.Page>
PquickLoginAsAdmin
(Class<P> pageClass, Object... args) void
<P extends com.atlassian.pageobjects.Page>
PquickLoginAsSysadmin
(Class<P> pageClass, Object... args) void
boolean
<P extends com.atlassian.pageobjects.Page>
P<P extends com.atlassian.pageobjects.Page>
com.atlassian.pageobjects.DelayedBinder<P>visitDelayed
(Class<P> pageClass, Object... args)
-
Field Details
-
TEST_SKIP_INSTANCE_SETUP_PROPERTY
- See Also:
-
-
Constructor Details
-
JiraTestedProduct
public JiraTestedProduct(com.atlassian.pageobjects.TestedProductFactory.TesterFactory<com.atlassian.webdriver.pageobjects.WebDriverTester> testerFactory, com.atlassian.pageobjects.ProductInstance productInstance) -
JiraTestedProduct
public JiraTestedProduct(com.atlassian.pageobjects.ProductInstance productInstance)
-
-
Method Details
-
getEnvironmentProperty
-
getEnvironmentProperty
-
gotoHomePage
-
goToAdminHomePage
-
setupPagesDependingOnLegacyMode
public void setupPagesDependingOnLegacyMode() -
quickLogin
-
quickLogin
-
quickLoginAsSysadmin
public void quickLoginAsSysadmin() -
quickLoginAsSysadmin
-
quickLoginAsAdmin
public void quickLoginAsAdmin() -
quickLoginAsAdmin
-
gotoLoginPage
-
goToViewIssue
-
goTo
Synonym forvisit(Class, Object...)
.- Type Parameters:
P
- page type- Parameters:
pageClass
- page classparams
- params- Returns:
- page instance
-
logout
-
logout
-
visit
- Specified by:
visit
in interfacecom.atlassian.pageobjects.TestedProduct<com.atlassian.webdriver.pageobjects.WebDriverTester>
-
visitDelayed
-
isAt
-
getPageBinder
public com.atlassian.pageobjects.PageBinder getPageBinder()- Specified by:
getPageBinder
in interfacecom.atlassian.pageobjects.TestedProduct<com.atlassian.webdriver.pageobjects.WebDriverTester>
-
getProductInstance
public com.atlassian.pageobjects.ProductInstance getProductInstance()- Specified by:
getProductInstance
in interfacecom.atlassian.pageobjects.TestedProduct<com.atlassian.webdriver.pageobjects.WebDriverTester>
-
getTester
public com.atlassian.webdriver.pageobjects.WebDriverTester getTester()- Specified by:
getTester
in interfacecom.atlassian.pageobjects.TestedProduct<com.atlassian.webdriver.pageobjects.WebDriverTester>
-
environmentData
-
backdoor
-
injector
public com.atlassian.pageobjects.inject.InjectionContext injector() -
windowSession
-
shouldSkipSetup
public boolean shouldSkipSetup() -
getAdminCredentials
-
getSysadminCredentials
-
clickWithBadXsrfToken
public <P extends com.atlassian.pageobjects.Page> P clickWithBadXsrfToken(com.atlassian.pageobjects.elements.PageElement toClick, Class<P> expectedTargetPage, Object... pageArgs) Replace 'atl_token' in 'href' of a given element to invalid one and click the element. Then bind given page.- Returns:
- bound resulting page
-
clickWithBadXsrfToken
Replace 'atl_token' in 'href' of a given element to invalid one and click the element. Then bind XSRF error page.- Returns:
- bound XSRF error page
-