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 |
protected org.openqa.selenium.JavascriptExecutor |
javascriptExecutor |
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
@Inject protected org.openqa.selenium.JavascriptExecutor javascriptExecutor
public DropdownSelect(com.atlassian.pageobjects.elements.PageElement context, org.openqa.selenium.By triggerLocator, org.openqa.selenium.By dropdownLocator)
public DropdownSelect close()
public boolean isOpen()
protected com.atlassian.pageobjects.elements.PageElement trigger()
protected com.atlassian.pageobjects.elements.PageElement dropDown()
public void pickOption(String onListId)
onListId
- public DropdownSelect open()
protected com.atlassian.pageobjects.elements.PageElement getDropDownItem(org.openqa.selenium.By locator)
public void waitForClose()
public void waitForOpen()
Copyright © 2002-2023 Atlassian. All Rights Reserved.