Class DropdownSelect

java.lang.Object
com.atlassian.jira.pageobjects.components.DropdownSelect

public class DropdownSelect extends Object
This class is pageobject for DropdownSelect.js object
Since:
v7.1
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected com.atlassian.pageobjects.elements.PageElementActions
     
    protected com.atlassian.pageobjects.elements.PageElementFinder
     
    protected org.openqa.selenium.JavascriptExecutor
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    DropdownSelect(com.atlassian.pageobjects.elements.PageElement context, org.openqa.selenium.By triggerLocator, org.openqa.selenium.By dropdownLocator)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    protected com.atlassian.pageobjects.elements.PageElement
     
    protected com.atlassian.pageobjects.elements.PageElement
    getDropDownItem(org.openqa.selenium.By locator)
     
    boolean
     
     
    void
    pickOption(String onListId)
    List.js used in DropdownSelect.js creates (not very reliable) IDs for every list item.
    protected com.atlassian.pageobjects.elements.PageElement
     
    void
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • actions

      @Inject protected com.atlassian.pageobjects.elements.PageElementActions actions
    • elementFinder

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

      @Inject protected org.openqa.selenium.JavascriptExecutor javascriptExecutor
  • Constructor Details

    • DropdownSelect

      public DropdownSelect(com.atlassian.pageobjects.elements.PageElement context, org.openqa.selenium.By triggerLocator, org.openqa.selenium.By dropdownLocator)
  • Method Details

    • close

      public DropdownSelect close()
    • isOpen

      public boolean isOpen()
    • trigger

      protected com.atlassian.pageobjects.elements.PageElement trigger()
    • pickOption

      public void pickOption(String onListId)
      List.js used in DropdownSelect.js creates (not very reliable) IDs for every list item. IDs are stored as classes "aui-list-item-li-{onListId}". For test purposes it is enough to locate element. Example:
      Parameters:
      onListId -
    • open

      public DropdownSelect open()
    • getDropDownItem

      protected com.atlassian.pageobjects.elements.PageElement getDropDownItem(org.openqa.selenium.By locator)
    • waitForClose

      public void waitForClose()
    • waitForOpen

      public void waitForOpen()