Class: Cucumber::Salad::Widgets::FieldGroup::TextField

Inherits:
Field
  • Object
show all
Defined in:
lib/cucumber/salad/widgets/field_group.rb

Overview

A text field.

Instance Attribute Summary

Attributes inherited from Widget

#root

Instance Method Summary collapse

Methods inherited from Field

find_in, present_in?

Methods inherited from Widget

find_in, #has_action?, #initialize, #inspect, present_in?, #reload, root, selector

Methods included from Cucumber::Salad::WidgetMacros

#action, #widget, #widget_delegator

Methods included from Cucumber::Salad::WidgetContainer

#has_widget?, #widget

Constructor Details

This class inherits a constructor from Cucumber::Salad::Widgets::Widget

Instance Method Details

#getObject

Returns The text field value.

Returns:

  • The text field value.



316
# File 'lib/cucumber/salad/widgets/field_group.rb', line 316

def_delegator :root, :value, :get

#set(value) ⇒ Object

Sets the text field value.

Parameters:

  • value (String)

    the value to set.



322
# File 'lib/cucumber/salad/widgets/field_group.rb', line 322

def_delegator :root, :set

#to_sObject

Returns the text field value, or the empty string if the field is empty.

Returns:

  • the text field value, or the empty string if the field is empty.



327
# File 'lib/cucumber/salad/widgets/field_group.rb', line 327

def_delegator :get, :to_s