Class DropdownSelect
java.lang.Object
com.atlassian.jira.pageobjects.components.DropdownSelect
This class is pageobject for DropdownSelect.js object
- Since:
- v7.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.atlassian.pageobjects.elements.PageElementActions
protected com.atlassian.pageobjects.elements.PageElementFinder
protected org.openqa.selenium.JavascriptExecutor
-
Constructor Summary
ConstructorsConstructorDescriptionDropdownSelect
(com.atlassian.pageobjects.elements.PageElement context, org.openqa.selenium.By triggerLocator, org.openqa.selenium.By dropdownLocator) -
Method Summary
Modifier and TypeMethodDescriptionclose()
protected com.atlassian.pageobjects.elements.PageElement
dropDown()
protected com.atlassian.pageobjects.elements.PageElement
getDropDownItem
(org.openqa.selenium.By locator) boolean
isOpen()
open()
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
trigger()
void
void
-
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
-
isOpen
public boolean isOpen() -
trigger
protected com.atlassian.pageobjects.elements.PageElement trigger() -
dropDown
protected com.atlassian.pageobjects.elements.PageElement dropDown() -
pickOption
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
-
getDropDownItem
protected com.atlassian.pageobjects.elements.PageElement getDropDownItem(org.openqa.selenium.By locator) -
waitForClose
public void waitForClose() -
waitForOpen
public void waitForOpen()
-