Class EditScreenTab
java.lang.Object
com.atlassian.jira.pageobjects.pages.admin.screen.EditScreenTab
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.atlassian.pageobjects.elements.PageElementprotected com.atlassian.pageobjects.elements.PageElementprotected DragAndDropprotected org.openqa.selenium.WebDriverprotected com.atlassian.pageobjects.elements.PageElementFinderprotected ExtendedElementFinderprotected SingleSelectprotected com.atlassian.pageobjects.PageBinderprotected com.atlassian.pageobjects.elements.PageElementprotected final longprotected com.atlassian.pageobjects.elements.PageElementprotected com.atlassian.pageobjects.elements.timeout.Timeoutsprotected TraceContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclickOnShowWhenEmptyToggleForField(org.openqa.selenium.WebElement field) com.atlassian.pageobjects.elements.PageElementWill only work ifhasField(String)evaluates totrue.Iterable<com.atlassian.pageobjects.elements.PageElement> com.atlassian.pageobjects.elements.PageElementintDeprecated.getName()org.openqa.selenium.WebElementgetShowWhenEmptyToggleForField(org.openqa.selenium.WebElement field) com.atlassian.pageobjects.elements.query.TimedConditionvoidvoidvoidmoveFieldAbove(String field, String target) voidmoveFieldBelow(String field, String target) removeField(String field) voidvoidrenameExpectingError(String name)
-
Field Details
-
driver
@Inject protected org.openqa.selenium.WebDriver driver -
pageBinder
@Inject protected com.atlassian.pageobjects.PageBinder pageBinder -
elementFinder
@Inject protected com.atlassian.pageobjects.elements.PageElementFinder elementFinder -
extendedFinder
-
traceContext
-
timeouts
@Inject protected com.atlassian.pageobjects.elements.timeout.Timeouts timeouts -
dragAndDrop
-
tabId
protected final long tabId -
fieldPicker
-
tab
protected com.atlassian.pageobjects.elements.PageElement tab -
table
protected com.atlassian.pageobjects.elements.PageElement table -
addButton
protected com.atlassian.pageobjects.elements.PageElement addButton -
deleteButton
protected com.atlassian.pageobjects.elements.PageElement deleteButton
-
-
Constructor Details
-
EditScreenTab
public EditScreenTab(long tabId)
-
-
Method Details
-
initialize
public void initialize() -
isPopulated
public void isPopulated() -
getFieldCount
public int getFieldCount() -
getName
-
getFields
Deprecated.usegetFieldNames()This method used to be prone to return wrong results due to race conditions. It was adjusted to fallback togetFieldNames()at .now() moment. UsinggetFieldNames()} directly will enforce clients to execute timed assertions and improve reliability of the tests.- Returns:
- list of field names at any given moment
-
getFieldNames
-
getFieldsPicker
-
hasField
-
findRow
Will only work ifhasField(String)evaluates totrue.- Parameters:
field- field to find the row for- Returns:
- page element representing the row
-
rename
-
renameExpectingError
-
removeField
-
addField
-
removeTab
public void removeTab() -
getAllSystemFields
-
moveFieldBelow
-
moveFieldAbove
-
getDeleteTabHandle
public com.atlassian.pageobjects.elements.PageElement getDeleteTabHandle() -
getShowWhenEmptyToggleForField
public org.openqa.selenium.WebElement getShowWhenEmptyToggleForField(org.openqa.selenium.WebElement field) -
clickOnShowWhenEmptyToggleForField
public void clickOnShowWhenEmptyToggleForField(org.openqa.selenium.WebElement field)
-
getFieldNames()This method used to be prone to return wrong results due to race conditions.