public class DropdownSelect extends Object
Modifier and Type | Field and Description |
---|---|
protected com.atlassian.pageobjects.elements.PageElementActions |
actions |
protected com.atlassian.pageobjects.elements.PageElementFinder |
elementFinder |
Constructor and Description |
---|
DropdownSelect(com.atlassian.pageobjects.elements.PageElement context,
org.openqa.selenium.By triggerLocator,
org.openqa.selenium.By dropdownLocator) |
Modifier and Type | Method and Description |
---|---|
DropdownSelect |
close() |
protected com.atlassian.pageobjects.elements.PageElement |
dropDown() |
protected com.atlassian.pageobjects.elements.PageElement |
getDropDownItem(org.openqa.selenium.By locator) |
boolean |
isOpen() |
DropdownSelect |
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 |
waitForClose() |
void |
waitForOpen() |
@Inject protected com.atlassian.pageobjects.elements.PageElementActions actions
@Inject protected com.atlassian.pageobjects.elements.PageElementFinder elementFinder
public DropdownSelect(com.atlassian.pageobjects.elements.PageElement context, org.openqa.selenium.By triggerLocator, org.openqa.selenium.By dropdownLocator)
protected com.atlassian.pageobjects.elements.PageElement trigger()
protected com.atlassian.pageobjects.elements.PageElement dropDown()
public DropdownSelect open()
protected com.atlassian.pageobjects.elements.PageElement getDropDownItem(org.openqa.selenium.By locator)
public void waitForOpen()
public void waitForClose()
public boolean isOpen()
public DropdownSelect close()
public void pickOption(String onListId)
onListId
- Copyright © 2002-2019 Atlassian. All Rights Reserved.