com.atlassian.jira.webtest.selenium.framework.dialogs
Class ActionsDialog

java.lang.Object
  extended by com.atlassian.jira.webtest.selenium.framework.core.AbstractSeleniumPageObject
      extended by com.atlassian.jira.webtest.selenium.framework.dialogs.AbstractDialog<ActionsDialog>
          extended by com.atlassian.jira.webtest.selenium.framework.dialogs.ActionsDialog
All Implemented Interfaces:
LocalizablePageObject, PageObject, Dialog

public class ActionsDialog
extends AbstractDialog<ActionsDialog>

Test utility representing the Dot Dialog.

Since:
v4.2

Field Summary
 
Fields inherited from class com.atlassian.jira.webtest.selenium.framework.core.AbstractSeleniumPageObject
assertThat, client, context
 
Constructor Summary
ActionsDialog(SeleniumContext ctx)
           
 
Method Summary
 void assertNoSuggestions()
           
 void assertNotOpen()
          Assert that this dialog is currently not open on the page.
 void assertStringIsBolded(String str)
           
 void assertSuggestionNotPresent(String suggestion, String... moreSuggestions)
           
 void assertSuggestionPresent(String suggestion, boolean focused)
           
 void assertSuggestionPresent(String suggestion, String... moreSuggestions)
           
 void close()
           
 void closeDropDown()
           
protected  String dialogContentsReadyLocator()
           Subclasses may override this method to provide dialog-specific contents locator, whose presence will indicate that the dialog contents have been loaded and the dialog is generally ready to use.
protected  String dropDownLocator()
           
 String inputAreaLocator()
           
 Locator inputLocatorObject()
           
 boolean isOpenable()
          Test if the dialog can be opened at the current location.
 boolean isSuggestionsOpen()
           
 ActionsDialog open()
          Open this dialog if possible.
 ActionsDialog openFromIssueNav(int issueId)
           
 ActionsDialog openFromViewIssue()
           
 ActionsDialog queryActions(String query)
           
 ActionsDialog queryActions(String query, boolean reset)
           
 void selectActionUsingEnter()
           
 void selectSuggestionUsingClick()
           
protected  String visibleDialogContentsLocator()
          jQuery locator of the main dialog component (when visible).
 
Methods inherited from class com.atlassian.jira.webtest.selenium.framework.dialogs.AbstractDialog
assertReady, asTargetType, inDialog, isClosed, isOpen, locator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionsDialog

public ActionsDialog(SeleniumContext ctx)
Method Detail

openFromViewIssue

public ActionsDialog openFromViewIssue()

openFromIssueNav

public ActionsDialog openFromIssueNav(int issueId)

open

public ActionsDialog open()
Description copied from interface: Dialog
Open this dialog if possible.

Returns:
this dialog instance

close

public void close()

assertNotOpen

public final void assertNotOpen()
Assert that this dialog is currently not open on the page.


closeDropDown

public final void closeDropDown()

dropDownLocator

protected String dropDownLocator()

inputAreaLocator

public String inputAreaLocator()

inputLocatorObject

public Locator inputLocatorObject()

assertNoSuggestions

public void assertNoSuggestions()

assertStringIsBolded

public void assertStringIsBolded(String str)

queryActions

public ActionsDialog queryActions(String query)

queryActions

public ActionsDialog queryActions(String query,
                                  boolean reset)

assertSuggestionPresent

public void assertSuggestionPresent(String suggestion,
                                    String... moreSuggestions)

assertSuggestionNotPresent

public void assertSuggestionNotPresent(String suggestion,
                                       String... moreSuggestions)

selectSuggestionUsingClick

public void selectSuggestionUsingClick()

selectActionUsingEnter

public void selectActionUsingEnter()

assertSuggestionPresent

public void assertSuggestionPresent(String suggestion,
                                    boolean focused)

visibleDialogContentsLocator

protected String visibleDialogContentsLocator()
Description copied from class: AbstractDialog
jQuery locator of the main dialog component (when visible).

Specified by:
visibleDialogContentsLocator in class AbstractDialog<ActionsDialog>
Returns:
jQuery locator

dialogContentsReadyLocator

protected String dialogContentsReadyLocator()
Description copied from class: AbstractDialog

Subclasses may override this method to provide dialog-specific contents locator, whose presence will indicate that the dialog contents have been loaded and the dialog is generally ready to use.

If the locator has not prefix, it must be relative to the dialog contents locator, as it will be appended to the main dialog locator. Locators containing prefix will be used as the stand.

Overrides:
dialogContentsReadyLocator in class AbstractDialog<ActionsDialog>
Returns:
dialog-specific locator of a characteristic element of dialog contents.

isOpenable

public boolean isOpenable()
Description copied from interface: Dialog
Test if the dialog can be opened at the current location.

Returns:
true, if opening of the dialog is currently possible

isSuggestionsOpen

public boolean isSuggestionsOpen()


Copyright © 2002-2013 Atlassian. All Rights Reserved.