Package com.atlassian.bamboo.pageobjects
Class BambooTestedProduct
- java.lang.Object
-
- com.atlassian.bamboo.pageobjects.BambooTestedProduct
-
- All Implemented Interfaces:
BambooWebDriverTestedProduct,com.atlassian.pageobjects.TestedProduct<com.atlassian.webdriver.pageobjects.WebDriverTester>
public class BambooTestedProduct extends Object implements BambooWebDriverTestedProduct
-
-
Constructor Summary
Constructors Constructor Description BambooTestedProduct(com.atlassian.pageobjects.TestedProductFactory.TesterFactory<com.atlassian.webdriver.pageobjects.WebDriverTester> testerFactory, com.atlassian.pageobjects.ProductInstance productInstance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddragAndDrop(org.openqa.selenium.WebElement fromHandle, org.openqa.selenium.WebElement toHandle, int overshootByX, int overshootByY)This will drag and drop given handle behind another handle.voidfastLogin(TestUser user)Fast login or change login to the new userorg.openqa.selenium.WebElementgetDragHandleWithinElementId(String id)com.atlassian.pageobjects.PageBindergetPageBinder()com.atlassian.pageobjects.ProductInstancegetProductInstance()com.atlassian.webdriver.pageobjects.WebDriverTestergetTester()BambooAdminHomePagegotoAdminHomePage()BambooDashboardPagegotoHomePage()BambooLoginPagegotoLoginPage()BambooDashboardPagelogout(AbstractBambooPage currentPage)voidlogoutByUrl()<P extends com.atlassian.pageobjects.Page>
Pvisit(Class<P> pageClass, Object... args)<P extends com.atlassian.pageobjects.Page>
com.atlassian.pageobjects.DelayedBinder<P>visitDelayed(Class<P> pageClass, Object... args)
-
-
-
Method Detail
-
fastLogin
public void fastLogin(TestUser user)
Fast login or change login to the new user
-
gotoHomePage
public BambooDashboardPage gotoHomePage()
-
gotoAdminHomePage
public BambooAdminHomePage gotoAdminHomePage()
-
gotoLoginPage
public BambooLoginPage gotoLoginPage()
-
logout
public BambooDashboardPage logout(AbstractBambooPage currentPage)
-
logoutByUrl
public void logoutByUrl()
-
visit
public <P extends com.atlassian.pageobjects.Page> P visit(Class<P> pageClass, Object... args)
- Specified by:
visitin interfacecom.atlassian.pageobjects.TestedProduct<com.atlassian.webdriver.pageobjects.WebDriverTester>
-
visitDelayed
public <P extends com.atlassian.pageobjects.Page> com.atlassian.pageobjects.DelayedBinder<P> visitDelayed(Class<P> pageClass, Object... args)
-
getPageBinder
public com.atlassian.pageobjects.PageBinder getPageBinder()
- Specified by:
getPageBinderin interfacecom.atlassian.pageobjects.TestedProduct<com.atlassian.webdriver.pageobjects.WebDriverTester>
-
getProductInstance
public com.atlassian.pageobjects.ProductInstance getProductInstance()
- Specified by:
getProductInstancein interfacecom.atlassian.pageobjects.TestedProduct<com.atlassian.webdriver.pageobjects.WebDriverTester>
-
getTester
public com.atlassian.webdriver.pageobjects.WebDriverTester getTester()
- Specified by:
getTesterin interfacecom.atlassian.pageobjects.TestedProduct<com.atlassian.webdriver.pageobjects.WebDriverTester>
-
getDragHandleWithinElementId
public org.openqa.selenium.WebElement getDragHandleWithinElementId(String id)
- Specified by:
getDragHandleWithinElementIdin interfaceBambooWebDriverTestedProduct
-
dragAndDrop
public void dragAndDrop(org.openqa.selenium.WebElement fromHandle, org.openqa.selenium.WebElement toHandle, int overshootByX, int overshootByY)This will drag and drop given handle behind another handle. Usually it is required to go a little behind the target element (depending on size of element) That's what overshoot values are - it seems both should be always != 0.- Specified by:
dragAndDropin interfaceBambooWebDriverTestedProduct- Parameters:
fromHandle- element to movetoHandle- element to move behindovershootByX- drag that many pixels after target element in X axisovershootByY- drag that many pixels after target element in Y axis
-
-