com.atlassian.jira.pageobjects.pages.admin.screen
Class EditScreenTab

java.lang.Object
  extended by com.atlassian.jira.pageobjects.pages.admin.screen.EditScreenTab

public class EditScreenTab
extends Object


Field Summary
protected  com.atlassian.pageobjects.elements.PageElement deleteTab
           
protected  DragAndDrop dragAndDrop
           
protected  com.atlassian.webdriver.AtlassianWebDriver driver
           
protected  com.atlassian.pageobjects.elements.PageElementFinder elementFinder
           
protected  ExtendedElementFinder extendedFinder
           
protected  SingleSelect fieldPicker
           
protected  com.atlassian.pageobjects.PageBinder pageBinder
           
protected  com.atlassian.pageobjects.elements.PageElement tab
           
protected  long tabId
           
protected  com.atlassian.pageobjects.elements.PageElement table
           
protected  com.atlassian.pageobjects.elements.timeout.Timeouts timeouts
           
protected  TraceContext traceContext
           
 
Constructor Summary
EditScreenTab(long tabId)
           
 
Method Summary
 EditScreenTab addField(String field)
           
protected  com.atlassian.pageobjects.elements.PageElement findRow(String field)
          Will only work if hasField(String) evaluates to true.
 int getFieldCount()
           
 com.atlassian.pageobjects.elements.query.TimedQuery<Iterable<String>> getFieldNames()
           
 List<String> getFields()
          Deprecated. use getFieldNames() as this method is prone to return wrong results due to race conditions. Using getFieldNames()} will enforce clients to execute timed assertions and improve reliability of the tests
 SingleSelect getFieldsPicker()
           
 String getName()
           
 com.atlassian.pageobjects.elements.query.TimedCondition hasField(String field)
           
 void isAt()
           
 void moveFieldAbove(String field, String target)
           
 void moveFieldBelow(String field, String target)
           
 EditScreenTab removeField(String field)
           
 void removeTab()
           
 void rename(String name)
           
 String renameExpectingError(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

driver

@Inject
protected com.atlassian.webdriver.AtlassianWebDriver driver

pageBinder

@Inject
protected com.atlassian.pageobjects.PageBinder pageBinder

elementFinder

@Inject
protected com.atlassian.pageobjects.elements.PageElementFinder elementFinder

extendedFinder

@Inject
protected ExtendedElementFinder extendedFinder

traceContext

@Inject
protected TraceContext traceContext

timeouts

@Inject
protected com.atlassian.pageobjects.elements.timeout.Timeouts timeouts

dragAndDrop

@Inject
protected DragAndDrop dragAndDrop

tabId

protected final long tabId

fieldPicker

protected SingleSelect fieldPicker

table

protected com.atlassian.pageobjects.elements.PageElement table

deleteTab

protected com.atlassian.pageobjects.elements.PageElement deleteTab

tab

protected com.atlassian.pageobjects.elements.PageElement tab
Constructor Detail

EditScreenTab

public EditScreenTab(long tabId)
Method Detail

isAt

public void isAt()

getFieldCount

public int getFieldCount()

getName

public String getName()

getFields

@Deprecated
public List<String> getFields()
Deprecated. use getFieldNames() as this method is prone to return wrong results due to race conditions. Using getFieldNames()} will enforce clients to execute timed assertions and improve reliability of the tests

Returns:
list of field names at any given moment

getFieldNames

public com.atlassian.pageobjects.elements.query.TimedQuery<Iterable<String>> getFieldNames()

getFieldsPicker

public SingleSelect getFieldsPicker()

hasField

public com.atlassian.pageobjects.elements.query.TimedCondition hasField(String field)

findRow

protected com.atlassian.pageobjects.elements.PageElement findRow(String field)
Will only work if hasField(String) evaluates to true.

Parameters:
field - field to find the row for
Returns:
page element representing the row

rename

public void rename(String name)

renameExpectingError

public String renameExpectingError(String name)

removeField

public EditScreenTab removeField(String field)

addField

public EditScreenTab addField(String field)

removeTab

public void removeTab()

moveFieldBelow

public void moveFieldBelow(String field,
                           String target)

moveFieldAbove

public void moveFieldAbove(String field,
                           String target)


Copyright © 2002-2014 Atlassian. All Rights Reserved.