public class

FormUtils

extends Object
java.lang.Object
   ↳ com.atlassian.jira.pageobjects.form.FormUtils

Class Overview

Some utilities for dealing with forms.

Summary

Public Constructors
FormUtils()
Public Methods
static Map<StringString> getAuiFormErrors(PageElement formElement)
Return a mapping of the errors currently on the form.
static List<String> getAuiFormGlobalErrors(PageElement formElement)
Return the global error on the passed form.
static void setElement(PageElement element, String value)
Set the value of an element.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public FormUtils ()

Public Methods

public static Map<StringString> getAuiFormErrors (PageElement formElement)

Return a mapping of the errors currently on the form. The mapping if from parameterName -> error.

Parameters
formElement the form.
Returns
  • a mapping from parameterName -> error of all the errors currently on the form.

public static List<String> getAuiFormGlobalErrors (PageElement formElement)

Return the global error on the passed form. Global errors are not associated with a field.

Parameters
formElement the form.
Returns
  • a list of global errors stripped of any whitespace.

public static void setElement (PageElement element, String value)

Set the value of an element. Will do nothing if value is null.

Parameters
element the element whose value should be changed.
value the value to set the element to.