public class DocumentPicker extends BaseElement
Modifier and Type | Field and Description |
---|---|
protected org.openqa.selenium.WebElement |
container |
Constructor and Description |
---|
DocumentPicker()
Use this constructor only if there is only one document picker on the page.
|
DocumentPicker(org.openqa.selenium.WebElement container) |
Modifier and Type | Method and Description |
---|---|
void |
browseDocuments()
Clicks the "pick document" button that triggers a modal pop-up to be displayed.
|
BreadcrumbElement |
getLocation() |
String |
getName() |
org.openqa.selenium.WebElement |
getNameInput() |
String |
getParent() |
org.openqa.selenium.WebElement |
getParentInput() |
String |
getTitle() |
org.openqa.selenium.WebElement |
getTitleInput() |
DocumentPicker |
setName(String name) |
DocumentPicker |
setParent(String parent) |
DocumentPicker |
setTitle(String title) |
DocumentPicker |
setWiki(String wikiName) |
DocumentPicker |
toggleLocationAdvancedEdit() |
void |
waitForLocation(List<String> expectedPath)
Wait for the Breadcrumb to display the passed path and throw an exception if the timeout is reached.
|
void |
waitForLocation(String expectedPathString)
Wait for the Breadcrumb to display the passed path string and throw an exception if the timeout is reached.
|
DocumentPicker |
waitForName(String name)
Wait until the name field has been changed.
|
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageJSIsLoaded
public DocumentPicker()
public DocumentPicker(org.openqa.selenium.WebElement container)
public String getTitle()
public DocumentPicker setTitle(String title)
public DocumentPicker waitForName(String name)
name
- the new namepublic org.openqa.selenium.WebElement getTitleInput()
public BreadcrumbElement getLocation()
public DocumentPicker toggleLocationAdvancedEdit()
public String getParent()
public DocumentPicker setParent(String parent)
public org.openqa.selenium.WebElement getParentInput()
public String getName()
public DocumentPicker setName(String name)
public org.openqa.selenium.WebElement getNameInput()
public DocumentPicker setWiki(String wikiName)
public void browseDocuments()
The caller is responsible for handling the modal (or instantiating the right page object element), such we limit the extra coupling that would be required from the test framework if it were to instantiate and return the page object for the modal pop-up.
public void waitForLocation(String expectedPathString)
Note: This method can not be implemented inside BreadcrumbElement
because a change of parent replaces
completely the BreadcrumbElement
's container and thus it becomes stale. To avoid that, at each wait
iteration, we lookup the current breadcrumb element and not a cached one.
expectedPathString
- the path string to wait forpublic void waitForLocation(List<String> expectedPath)
Note: This method can not be implemented inside BreadcrumbElement
because a change of parent replaces
completely the BreadcrumbElement
's container and thus it becomes stale. To avoid that, at each wait
iteration, we lookup the current breadcrumb element and not a cached one.
expectedPath
- the path to wait forCopyright © 2004–2021 XWiki. All rights reserved.