Module: Druid::ElementLocators

Included in:
Druid
Defined in:
lib/druid/element_locators.rb

Instance Method Summary collapse

Instance Method Details

#button_element(identifier) ⇒ Object

Finds a button

Parameters:

  • identifier (Hash)

    how we find a button. You can use a multiple paramaters by combining of any of the following except xpath. The valid keys are:

    * :class
    * :id
    * :index
    * :name
    * :text
    * :value
    * :xpath
    * :src
    * :alt
    


19
20
21
# File 'lib/druid/element_locators.rb', line 19

def button_element identifier
  button_for identifier
end

#cell_element(identifier) ⇒ Object

Finds a table cell

Parameters:

  • identifier (Hash)

    how we find a table cell. You can use a multiple parameters by combining of any of the following except xpath. The valid keys are:

    * :class
    * :id
    * :index
    * :name
    * :xpath
    * :text
    


203
204
205
# File 'lib/druid/element_locators.rb', line 203

def cell_element identifier
  cell_for identifier
end

#checkbox_element(identifier) ⇒ Object

Finds a check box

Parameters:

  • identifier (Hash)

    how we find a check box. You can use a multiple parameters by combining of any of the following except xpath. The valid keys are:

    * :class
    * :id
    * :index
    * :name
    * :xpath
    * :value
    


126
127
128
# File 'lib/druid/element_locators.rb', line 126

def checkbox_element identifier
  checkbox_for identifier
end

#div_element(identifier) ⇒ Object

Finds a div

Parameters:

  • identifier (Hash)

    how we find a div. You can use a multiple parameters by combining of any of the following except xpath. The valid keys are:

    * :class
    * :id
    * :index
    * :name
    * :xpath
    * :text
    


157
158
159
# File 'lib/druid/element_locators.rb', line 157

def div_element identifier
  div_for identifier
end

#file_field_element(identifier) ⇒ Object

Finds a file field

Parameters:

  • identifier (Hash)

    how we find a file field. You can use a multiple parameters by combining of any of the following except xpath. The valid keys are:

    * :class
    * :id
    * :index
    * :xpath
    * :name
    * :title
    


401
402
403
# File 'lib/druid/element_locators.rb', line 401

def file_field_element identifier
  file_field_for identifier
end

#form_element(identifier) ⇒ Object

Finds a form

Parameters:

  • identifier (Hash)

    how we find a form. You can use a multiple parameters by combining of any of the following except xpath. The valid keys are:

    * :class
    * :id
    * :index
    * :xpath
    * :action
    


235
236
237
# File 'lib/druid/element_locators.rb', line 235

def form_element identifier
  form_for identifier
end

#h1_element(identifier) ⇒ Object

Finds a h1

Parameters:

  • identifier (Hash)

    how we find a h1. You can use a multiple parameters by combining of any of the following except xpath. The valid keys are:

    * :class
    * :id
    * :index
    * :xpath
    * :name
    


295
296
297
# File 'lib/druid/element_locators.rb', line 295

def h1_element identifier
  h1_for identifier
end

#h2_element(identifier) ⇒ Object

Finds a h2

Parameters:

  • identifier (Hash)

    how we find a h2. You can use a multiple parameters by combining of any of the following except xpath. The valid keys are:

    * :class
    * :id
    * :index
    * :xpath
    * :name
    


310
311
312
# File 'lib/druid/element_locators.rb', line 310

def h2_element identifier
  h2_for identifier
end

#h3_element(identifier) ⇒ Object

Finds a h3

Parameters:

  • identifier (Hash)

    how we find a h3. You can use a multiple parameters by combining of any of the following except xpath. The valid keys are:

    * :class
    * :id
    * :index
    * :xpath
    * :name
    


325
326
327
# File 'lib/druid/element_locators.rb', line 325

def h3_element identifier
  h3_for identifier
end

#h4_element(identifier) ⇒ Object

Finds a h4

Parameters:

  • identifier (Hash)

    how we find a h4. You can use a multiple parameters by combining of any of the following except xpath. The valid keys are:

    * :class
    * :id
    * :index
    * :xpath
    * :name
    


340
341
342
# File 'lib/druid/element_locators.rb', line 340

def h4_element identifier
  h4_for identifier
end

#h5_element(identifier) ⇒ Object

Finds a h5

Parameters:

  • identifier (Hash)

    how we find a h5. You can use a multiple parameters by combining of any of the following except xpath. The valid keys are:

    * :class
    * :id
    * :index
    * :xpath
    * :name
    


355
356
357
# File 'lib/druid/element_locators.rb', line 355

def h5_element identifier
  h5_for identifier
end

#h6_element(identifier) ⇒ Object

Finds a h6

Parameters:

  • identifier (Hash)

    how we find a h6. You can use a multiple parameters by combining of any of the following except xpath. The valid keys are:

    * :class
    * :id
    * :index
    * :xpath
    * :name
    


370
371
372
# File 'lib/druid/element_locators.rb', line 370

def h6_element identifier
  h6_for identifier
end

#hidden_field_element(identifier) ⇒ Object

Finds a hidden field

Parameters:

  • identifier (Hash)

    how we find a hidden field. You can use a multiple parameters by combining of any of the following except xpath. The valid keys are:

    * :class
    * :css
    * :id
    * :index
    * :name
    * :tag_name
    * :text
    * :xpath
    * :value
    


57
58
59
# File 'lib/druid/element_locators.rb', line 57

def hidden_field_element identifier
  hidden_field_for identifier
end

#image_element(identifier) ⇒ Object

Finds an image

Parameters:

  • identifier (Hash)

    how we find an image. You can use a multiple parameters by combining of any of the following except xpath. The valid keys are:

    * :class
    * :id
    * :index
    * :name
    * :xpath
    * :alt
    * :src
    


220
221
222
# File 'lib/druid/element_locators.rb', line 220

def image_element identifier
  image_for identifier
end

Finds a link

Parameters:

  • identifier (Hash)

    how we find a link. You can use a multiple parameters by combining of any of the following except xpath. The valid keys are:

    * :class
    * :href
    * :id
    * :index
    * :link
    * :link_text
    * :name
    * :xpath
    * :text
    


110
111
112
# File 'lib/druid/element_locators.rb', line 110

def link_element identifier
  link_for identifier
end

#list_item_element(identifier) ⇒ Object

Finds a list item

Parameters:

  • identifier (Hash)

    how we find a list item. You can use a multiple parameters by combining of any of the following except xpath. The valid keys are:

    * :class
    * :id
    * :index
    * :xpath
    * :name
    


250
251
252
# File 'lib/druid/element_locators.rb', line 250

def list_item_element identifier
  list_item_for identifier
end

#ordered_list_element(identifier) ⇒ Object

Finds an ordered list

Parameters:

  • identifier (Hash)

    how we find an ordered list. You can use a multiple parameters by combining of any of the following except xpath. The valid keys are:

    * :class
    * :id
    * :index
    * :xpath
    * :name
    


265
266
267
# File 'lib/druid/element_locators.rb', line 265

def ordered_list_element identifier
  ordered_list_for identifier
end

#paragraph_element(identifier) ⇒ Object

Finds a paragraph

Parameters:

  • identifier (Hash)

    how we find a paragraph. You can use a multiple parameters by combining of any of the following except xpath. The valid keys are:

    * :class
    * :id
    * :index
    * :xpath
    * :name
    


385
386
387
# File 'lib/druid/element_locators.rb', line 385

def paragraph_element identifier
  paragraph_for identifier
end

#radio_button_element(identifier) ⇒ Object

Finds a radio button

Parameters:

  • identifier (Hash)

    how we find a radio button. You can use a multiple parameters by combining of any of the following except xpath. The valid keys are:

    * :class
    * :id
    * :index
    * :name
    * :xpath
    


141
142
143
# File 'lib/druid/element_locators.rb', line 141

def radio_button_element identifier
  radio_button_for identifier
end

#select_list_element(identifier) ⇒ Object

Finds a select list

Parameters:

  • identifier (Hash)

    how we find a select list. You can use a multiple parameters by combining of any of the following except xpath. The valid keys are:

    * :class
    * :id
    * :index
    * :name
    * :xpath
    * :value
    * :text
    


91
92
93
# File 'lib/druid/element_locators.rb', line 91

def select_list_element identifier
  select_list_for identifier
end

#span_element(identifier) ⇒ Object

Finds a span

Parameters:

  • identifier (Hash)

    how we find a span. You can use a multiple parameters by combining of any of the following except xpath. The valid keys are:

    * :class
    * :id
    * :index
    * :name
    * :xpath
    


172
173
174
# File 'lib/druid/element_locators.rb', line 172

def span_element identifier
  span_for identifier
end

#table_element(identifier) ⇒ Object

Finds a table

Parameters:

  • identifier (Hash)

    how we find a table. You can use a multiple parameters by combining of any of the following except xpath. The valid keys are:

    * :class
    * :id
    * :index
    * :name
    * :xpath
    


187
188
189
# File 'lib/druid/element_locators.rb', line 187

def table_element identifier
  table_for identifier
end

#text_area_element(identifier) ⇒ Object

Finds a text area

Parameters:

  • identifier (Hash)

    how we find a text area. You can use a multiple parameters by combining of any of the following except xpath. The valid keys are:

    * :class
    * :css
    * :id
    * :index
    * :name
    * :tag_name
    * :xpath
    


74
75
76
# File 'lib/druid/element_locators.rb', line 74

def text_area_element identifier
  text_area_for identifier
end

#text_field_element(identifier) ⇒ Object

Finds a text field

Parameters:

  • identifier (Hash)

    how we find a text field. You can use a multiple parameters by combining of any of the following except xpath. The valid keys are:

    * :class
    * :css
    * :id
    * :index
    * :name
    * :tag_name
    * :text
    * :xpath
    * :title
    


38
39
40
# File 'lib/druid/element_locators.rb', line 38

def text_field_element identifier
  text_field_for identifier
end

#unordered_list_element(identifier) ⇒ Object

Finds an unordered list

Parameters:

  • identifier (Hash)

    how we find an unordered list. You can use a multiple parameters by combining of any of the following except xpath. The valid keys are:

    * :class
    * :id
    * :index
    * :xpath
    * :name
    


280
281
282
# File 'lib/druid/element_locators.rb', line 280

def unordered_list_element identifier
  unordered_list_for identifier
end