Package org.xwiki.flamingo.skin.test.po
Class JobQuestionPane
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- org.xwiki.flamingo.skin.test.po.JobQuestionPane
-
public class JobQuestionPane extends BaseElement
Represent a job question element to be manipulated in functional tests.- Since:
- 11.1RC1
- Version:
- $Id: fc53e6f16a8bd426b48aa9fb1fbc89097023975d $
-
-
Constructor Summary
Constructors Constructor Description JobQuestionPane()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancelQuestion()
Cancel the question.CopyOrRenameOrDeleteStatusPage
confirmQuestion()
Confirm the question.String
getQuestionTitle()
TreeElement
getQuestionTree()
boolean
isBlockedJob()
boolean
isCanceled()
boolean
isEmpty()
JobQuestionPane
waitForQuestionPane()
Waits for the elements to be visible before returning the question pane.-
Methods inherited from class org.xwiki.test.ui.po.BaseElement
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageIsReady
-
-
-
-
Method Detail
-
waitForQuestionPane
public JobQuestionPane waitForQuestionPane()
Waits for the elements to be visible before returning the question pane. It shouldn't be used if a blocked job is expected (seeisBlockedJob()
).- Returns:
- a job question pane loaded.
-
isCanceled
public boolean isCanceled()
- Returns:
- true if the question has been canceled.
-
isEmpty
public boolean isEmpty()
- Returns:
- true if the question area is empty.
-
getQuestionTitle
public String getQuestionTitle()
- Returns:
- the title of the current question.
-
getQuestionTree
public TreeElement getQuestionTree()
- Returns:
- the tree element corresponding to the current question.
-
cancelQuestion
public void cancelQuestion()
Cancel the question.
-
confirmQuestion
public CopyOrRenameOrDeleteStatusPage confirmQuestion()
Confirm the question.- Returns:
- return a page status to check what happens.
-
isBlockedJob
public boolean isBlockedJob()
- Returns:
- true if the current job is blocked by another one.
-
-