public class FormContainerElement extends BaseElement
Modifier and Type | Class and Description |
---|---|
class |
FormContainerElement.SelectElement |
Constructor and Description |
---|
FormContainerElement(org.openqa.selenium.By formSelector)
The form element is retrieved through the given selector.
|
FormContainerElement(org.openqa.selenium.WebElement formContainer)
The form element is retrieved through its container.
|
Modifier and Type | Method and Description |
---|---|
void |
fillFieldsByElements(Map<org.openqa.selenium.WebElement,String> valuesByElements) |
void |
fillFieldsByName(Map<String,String> valuesByNames) |
String |
getFieldValue(org.openqa.selenium.By findElementBy) |
String |
getFormAction() |
protected org.openqa.selenium.WebElement |
getFormElement() |
FormContainerElement.SelectElement |
getSelectElement(org.openqa.selenium.By by) |
boolean |
hasField(org.openqa.selenium.By findFieldBy) |
void |
setCheckBox(org.openqa.selenium.By findElementBy,
boolean checked) |
void |
setCheckBox(org.openqa.selenium.WebElement checkBoxElement,
boolean checked) |
void |
setFieldValue(org.openqa.selenium.By findElementBy,
String value) |
void |
setFieldValue(org.openqa.selenium.WebElement fieldElement,
String value) |
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageJSIsLoaded
public FormContainerElement(org.openqa.selenium.By formSelector)
formSelector
- the selector used to retrieve the formpublic FormContainerElement(org.openqa.selenium.WebElement formContainer)
formContainer
- the container containing the form.protected org.openqa.selenium.WebElement getFormElement()
public void fillFieldsByElements(Map<org.openqa.selenium.WebElement,String> valuesByElements)
public String getFieldValue(org.openqa.selenium.By findElementBy)
public void setFieldValue(org.openqa.selenium.By findElementBy, String value)
public boolean hasField(org.openqa.selenium.By findFieldBy)
public void setFieldValue(org.openqa.selenium.WebElement fieldElement, String value)
public void setCheckBox(org.openqa.selenium.By findElementBy, boolean checked)
public void setCheckBox(org.openqa.selenium.WebElement checkBoxElement, boolean checked)
public String getFormAction()
public FormContainerElement.SelectElement getSelectElement(org.openqa.selenium.By by)
Copyright © 2004–2021 XWiki. All rights reserved.