Add Checkbox

Arguments

  • label: str
  • element_id: str
  • options: str
  • default: str = None

Add checkbox element

param label:check box element label
param element_id:
 check box element identifier
param options:values for the check box
param default:check box selected value, defaults to None

Example.


Create Form
Add Checkbox    label=Select your colors
...             element_id=colors
...             options=green,red,blue,yellow
...             default=blue

Add Dropdown

Arguments

  • label: str
  • element_id: str
  • options: typing.Any
  • default: str = None

Add dropdown element

param label:dropdown element label
param element_id:
 dropdown element id attribute
param options:values for the dropdown
param default:dropdown selected value, defaults to None

Example.


Create Form
Add Dropdown  label=Select task type
...           element_id=tasktype
...           options=buy,sell,rent
...           default=buy

Add File Input

Arguments

  • label: str
  • element_id: str
  • name: str
  • filetypes: str
  • target_directory: str = None

Add text input element

param label:input element label
param element_id:
 hidden element id attribute
param name:input element name attribute
param filetypes:
 accepted filetypes for the file upload
param target_directory:
 where to save uploaded files to

Read more of the filetypes in the library documentation.

Example.


Create Form
Add File Input  label=Attachment
...             element_id=attachment
...             name=attachment
...             filetypes=${EMPTY}         # Accept all files
...             target_directory=${CURDIR}${/}output

Add File Input  label=Contract
...             element_id=contract
...             name=contract
...             filetypes=application/pdf  # Accept only PDFs
...             target_directory=${CURDIR}${/}output

Add Hidden Input

Arguments

  • name: str
  • value: str

Add hidden input element

param name:input element name attribute
param value:input element value attribute

Example.


Create Form
${uuid}   Evaluate  str(uuid.uuid4())
Add Hidden Input    form-id   ${uuid}

Add Radio Buttons

Arguments

  • element_id: str
  • options: str
  • default: str = None

Add radio button element

param element_id:
 radio button element identifier
param options:values for the radio button
param default:radio button selected value, defaults to None

Example.


Create Form
Add Radio Button   element_id=drone  buttons=Jim,Robert  default=Robert

Add Submit

Arguments

  • name: str
  • buttons: str

Add submit element

param name:element name attribute
param buttons:list of buttons

Example.


Create Form
Add Submit    name=direction-to-go  buttons=left,right

Add Text

Arguments

  • value: str

Add text paragraph element

param value:text for the element

Example.


Create Form
Add Text       ${form_guidance_text}

Add Text Input

Arguments

  • label: str
  • name: str

Add text input element

param label:input element label
param name:input element name attribute

Example.


Create Form
Add Text Input   what is your firstname ?  fname

Add Textarea

Arguments

  • name: str
  • rows: int = 5
  • cols: int = 40
  • default: str = None

Add textarea element

param name:textarea element name
param rows:number of rows for the area, defaults to 5
param cols:numnber of columns for the area, defaults to 40
param default:prefilled text for the area, defaults to None

Example.


Create Form
Add Textarea       name=feedback  default=enter feedback here
Add Textarea       name=texts  rows=40   cols=80

Add Title

Arguments

  • title: str

Add h3 element into form

param title:text for the element

Example.


Create Form     # default form title will be "Requesting response"
Add Title       User Confirmation Form

Create Form

Arguments

  • title: str = None

Create new form

param title:form title, defaults to None

Example.


Create Form     # form title will be "Requesting response"
Create Form     title=User Confirmation Form

Request Response

Arguments

  • formspec: str = None
  • window_width: int = 600
  • window_height: int = 1000

Start server and show form. Waits for user response.

param formspec:form json specification file, defaults to None
param window_width:
 window width in pixels, defaults to 600
param window_height:
 window height in pixels, defaults to 1000
return:form response

Example.


Create Form    ${CURDIR}/${/}myform.json
&{response}    Request Response