org.xwiki.test.ui.po
Class FormElement

java.lang.Object
  extended by org.xwiki.test.ui.po.BaseElement
      extended by org.xwiki.test.ui.po.FormElement
Direct Known Subclasses:
ObjectEditPane

public class FormElement
extends BaseElement

Represents a Form.

Since:
3.2M3
Version:
$Id: ed4662400f146bbe66036ddbd98d95eea259f83c $

Nested Class Summary
 class FormElement.SelectElement
           
 
Constructor Summary
FormElement(org.openqa.selenium.WebElement form)
           
 
Method Summary
 void fillFieldsByElements(Map<org.openqa.selenium.WebElement,String> valuesByElements)
           
 void fillFieldsByName(Map<String,String> valuesByNames)
           
 String getFieldValue(org.openqa.selenium.By findElementBy)
           
protected  org.openqa.selenium.WebElement getForm()
           
 FormElement.SelectElement getSelectElement(org.openqa.selenium.By by)
           
 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)
           
 
Methods inherited from class org.xwiki.test.ui.po.BaseElement
executeJavascript, getDriver, getUtil, makeAlertDialogSilent, makeConfirmDialogSilent, makeElementVisible, makeElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilElementDisappears, waitUntilElementEndsWithAttributeValue, waitUntilElementHasAttributeValue, waitUntilElementHasTextContent, waitUntilElementIsVisible, waitUntilElementsAreVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormElement

public FormElement(org.openqa.selenium.WebElement form)
Method Detail

getForm

protected org.openqa.selenium.WebElement getForm()

fillFieldsByName

public void fillFieldsByName(Map<String,String> valuesByNames)

fillFieldsByElements

public void fillFieldsByElements(Map<org.openqa.selenium.WebElement,String> valuesByElements)

getFieldValue

public String getFieldValue(org.openqa.selenium.By findElementBy)

setFieldValue

public void setFieldValue(org.openqa.selenium.By findElementBy,
                          String value)

setFieldValue

public void setFieldValue(org.openqa.selenium.WebElement fieldElement,
                          String value)

setCheckBox

public void setCheckBox(org.openqa.selenium.By findElementBy,
                        boolean checked)

setCheckBox

public void setCheckBox(org.openqa.selenium.WebElement checkBoxElement,
                        boolean checked)

getSelectElement

public FormElement.SelectElement getSelectElement(org.openqa.selenium.By by)


Copyright © 2004-2013 XWiki. All Rights Reserved.