Module: Druid::ElementLocators

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

Instance Method Summary collapse

Instance Method Details

#button_element(identifier = {:index => 0}) ⇒ Object

Finds a button

Parameters:

  • identifier (Hash) (defaults to: {:index => 0})

    how we find a button. You can use a multiple paramaters by combining of any of the following except xpath. It defaults to => 0 which will find the first button. The valid keys are:

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


21
22
23
# File 'lib/druid/element_locators.rb', line 21

def button_element(identifier={:index => 0})
  button_for identifier.clone
end

#button_elements(identifier = {}) ⇒ Object

Finds all buttons that match the provided identifier

Parameters:

  • identifier (Hash) (defaults to: {})

    how we find all buttons. You can use a multiple paramaters by combining of any of the following except xpath. It defaults to an empty hash which will find all button elements. The valid keys are:

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


42
43
44
# File 'lib/druid/element_locators.rb', line 42

def button_elements(identifier={})
  buttons_for identifier.clone
end

#cell_element(identifier = {:index => 0}) ⇒ Object

Finds a table cell

Parameters:

  • identifier (Hash) (defaults to: {:index => 0})

    how we find a table cell. You can use a multiple parameters by combining of any of the following except xpath. It defaults to => 0 which will find the first cell. The valid keys are:

    • :class

    • :id

    • :index

    • :name

    • :xpath

    • :text



419
420
421
# File 'lib/druid/element_locators.rb', line 419

def cell_element(identifier={:index => 0})
  cell_for identifier.clone
end

#cell_elements(identifier = {}) ⇒ Object

Finds all table cell elements that match the provided identifier

Parameters:

  • identifier (Hash) (defaults to: {})

    how we find a cell. You can use a multiple parameters by combining of any of the following except xpath. It defaults to empty Hash which will return all cells. The valid keys are:

    • :class

    • :id

    • :index

    • :name

    • :xpath

    • :text



436
437
438
# File 'lib/druid/element_locators.rb', line 436

def cell_elements(identifier={})
  cells_for identifier.clone
end

#checkbox_element(identifier = {:index => 0}) ⇒ Object

Finds a check box

Parameters:

  • identifier (Hash) (defaults to: {:index => 0})

    how we find a check box. You can use a multiple parameters by combining of any of the following except xpath. It defaults to => 0 which will find the first checkbox. The valid keys are:

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


255
256
257
# File 'lib/druid/element_locators.rb', line 255

def checkbox_element(identifier={:index => 0})
  checkbox_for identifier.clone
end

#checkbox_elements(identifier = {}) ⇒ Object

Finds all checkbox elements for the provided identifier

Parameters:

  • identifier (Hash) (defaults to: {})

    how we find a checkbox. You can use a multiple parameters by combining of any of the following except xpath. It defaults to empty Hash which will return all checkboxes. The valid keys are:

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


272
273
274
# File 'lib/druid/element_locators.rb', line 272

def checkbox_elements(identifier={})
  checkboxes_for identifier.clone
end

#div_element(identifier = {:index => 0}) ⇒ Object

Finds a div

Parameters:

  • identifier (Hash) (defaults to: {:index => 0})

    how we find a div. You can use a multiple parameters by combining of any of the following except xpath. It defaults to => 0 which will find the first div. The valid keys are:

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


321
322
323
# File 'lib/druid/element_locators.rb', line 321

def div_element(identifier={:index => 0})
  div_for identifier.clone
end

#div_elements(identifier = {}) ⇒ Object

Finds all divs that match the provided identifier

Parameters:

  • identifier (Hash) (defaults to: {})

    how we find a div. You can use a multiple parameters by combining of any of the following except xpath. It defaults to empty Hash which will return all divs. The valid keys are:

    • :class

    • :id

    • :index

    • :name

    • :xpath

    • :text



338
339
340
# File 'lib/druid/element_locators.rb', line 338

def div_elements(identifier={})
  divs_for identifier
end

#element(tag, identifier = {:index => 0}) ⇒ Object

Finds an element

Parameters:

  • the (Symbol)

    name of the tag for the element

  • identifier (Hash) (defaults to: {:index => 0})

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

    • :class

    • :id

    • :index

    • :name

    • :xpath



914
915
916
# File 'lib/druid/element_locators.rb', line 914

def element(tag, identifier={:index => 0})
  element_for(tag, identifier.clone)
end

#file_field_element(identifier = {:index => 0}) ⇒ Object

Finds a file field

Parameters:

  • identifier (Hash) (defaults to: {:index => 0})

    how we find a file field. You can use a multiple parameters by combining of any of the following except xpath. It defaults to => 0 which will find the first file field. The valid keys are:

    • :class

    • :id

    • :index

    • :xpath

    • :name

    • :title



847
848
849
# File 'lib/druid/element_locators.rb', line 847

def file_field_element(identifier={:index => 0})
  file_field_for identifier.clone
end

#file_field_elements(identifier = {}) ⇒ Object

Finds all file fields that match the provided identifier

Parameters:

  • identifier (Hash) (defaults to: {})

    how we find a file field. You can use a multiple parameters by combining of any of the following except xpath. It defaults to empty Hash which will return all file fields. The valid keys are:

    • :class

    • :id

    • :index

    • :xpath

    • :name

    • :title



864
865
866
# File 'lib/druid/element_locators.rb', line 864

def file_field_elements(identifier={})
  file_fields_for identifier.clone
end

#form_element(identifier = {:index => 0}) ⇒ Object

Finds a form

Parameters:

  • identifier (Hash) (defaults to: {:index => 0})

    how we find a form. You can use a multiple parameters by combining of any of the following except xpath. It defaults to => 0 which will find the first form. The valid keys are:

    • :class

    • :id

    • :index

    • :xpath

    • :action



488
489
490
# File 'lib/druid/element_locators.rb', line 488

def form_element(identifier={:index => 0})
  form_for identifier.clone
end

#form_elements(identifier = {}) ⇒ Object

Finds all forms that match the provided identifier

Parameters:

  • identifier (Hash) (defaults to: {})

    how we find a form. You can use a multiple parameters by combining of any of the following except xpath. It defaults to empty Hash which will return all forms. The valid keys are:

    • :class

    • :id

    • :index

    • :xpath

    • :action



504
505
506
# File 'lib/druid/element_locators.rb', line 504

def form_elements(identifier={})
  forms_for identifier.clone
end

#h1_element(identifier = {:index => 0}) ⇒ Object

Finds a h1

Parameters:

  • identifier (Hash) (defaults to: {:index => 0})

    how we find a h1. You can use a multiple parameters by combining of any of the following except xpath. It defaults to => 0 which will find the first h1. The valid keys are:

    • :class

    • :id

    • :index

    • :xpath

    • :name



616
617
618
# File 'lib/druid/element_locators.rb', line 616

def h1_element(identifier={:index => 0})
  h1_for identifier.clone
end

#h1_elements(identifier = {}) ⇒ Object

Finds all h1 elements that match the provided identifier

Parameters:

  • identifier (Hash) (defaults to: {})

    how we find a h1. You can use a multiple parameters by combining of any of the following except xpath. It defaults to empty hash which will return all h1s. The valid keys are:

    • :class

    • :id

    • :index

    • :xpath

    • :name



633
634
635
# File 'lib/druid/element_locators.rb', line 633

def h1_elements(identifier={})
  h1s_for identifier.clone
end

#h2_element(identifier = {:index => 0}) ⇒ Object

Finds a h2

Parameters:

  • identifier (Hash) (defaults to: {:index => 0})

    how we find a h2. You can use a multiple parameters by combining of any of the following except xpath. It defaults to => 0 which will find the first h2. The valid keys are:

    • :class

    • :id

    • :index

    • :xpath

    • :name



649
650
651
# File 'lib/druid/element_locators.rb', line 649

def h2_element(identifier={:index => 0})
  h2_for identifier.clone
end

#h2_elements(identifier = {}) ⇒ Object

Finds all h2 elements that match the provided identifier

Parameters:

  • identifier (Hash) (defaults to: {})

    how we find a h2. You can use a multiple parameters by combining of any of the following except xpath. It defaults to empty Hash which will return all h2s. The valid keys are:

    • :class

    • :id

    • :index

    • :xpath

    • :name



666
667
668
# File 'lib/druid/element_locators.rb', line 666

def h2_elements(identifier={})
  h2s_for identifier.clone
end

#h3_element(identifier = {:index => 0}) ⇒ Object

Finds a h3

Parameters:

  • identifier (Hash) (defaults to: {:index => 0})

    how we find a h3. You can use a multiple parameters by combining of any of the following except xpath. It defaults to => 0 which will find the first h3. The valid keys are:

    • :class

    • :id

    • :index

    • :xpath

    • :name



682
683
684
# File 'lib/druid/element_locators.rb', line 682

def h3_element(identifier={:index => 0})
  h3_for identifier.clone
end

#h3_elements(identifier = {}) ⇒ Object

Finds all h3 elements that match the provided identifier

Parameters:

  • identifier (Hash) (defaults to: {})

    how we find a h3. You can use a multiple parameters by combining of any of the following except xpath. It defaults to empty Hash which will return all h3s. The valid keys are:

    • :class

    • :id

    • :index

    • :xpath

    • :name



699
700
701
# File 'lib/druid/element_locators.rb', line 699

def h3_elements(identifier={})
  h3s_for identifier.clone
end

#h4_element(identifier = {:index => 0}) ⇒ Object

Finds a h4

Parameters:

  • identifier (Hash) (defaults to: {:index => 0})

    how we find a h4. You can use a multiple parameters by combining of any of the following except xpath. It defaults to => 0 which will find the first h4. The valid keys are:

    • :class

    • :id

    • :index

    • :xpath

    • :name



715
716
717
# File 'lib/druid/element_locators.rb', line 715

def h4_element(identifier={:index => 0})
  h4_for identifier.clone
end

#h4_elements(identifier = {}) ⇒ Object

Finds all h4 elements that match the provided identifier

Parameters:

  • identifier (Hash) (defaults to: {})

    how we find a h4. You can use a multiple parameters by combining of any of the following except xpath. It defaults to empty Hash which will return all h4s. The valid keys are:

    • :class

    • :id

    • :index

    • :xpath

    • :name



732
733
734
# File 'lib/druid/element_locators.rb', line 732

def h4_elements(identifier={})
  h4s_for identifier.clone
end

#h5_element(identifier = {:index => 0}) ⇒ Object

Finds a h5

Parameters:

  • identifier (Hash) (defaults to: {:index => 0})

    how we find a h5. You can use a multiple parameters by combining of any of the following except xpath. It defaults to => 0 which will find the first h5. The valid keys are:

    • :class

    • :id

    • :index

    • :xpath

    • :name



748
749
750
# File 'lib/druid/element_locators.rb', line 748

def h5_element(identifier={:index => 0})
  h5_for identifier.clone
end

#h5_elements(identifier = {}) ⇒ Object

Finds all h5 elements that match the provided identifier

Parameters:

  • identifier (Hash) (defaults to: {})

    how we find a h5. You can use a multiple parameters by combining of any of the following except xpath. It defaults to empty Hash which will return all h5s. The valid keys are:

    • :class

    • :id

    • :index

    • :xpath

    • :name



765
766
767
# File 'lib/druid/element_locators.rb', line 765

def h5_elements(identifier={})
  h5s_for identifier.clone
end

#h6_element(identifier = {:index => 0}) ⇒ Object

Finds a h6

Parameters:

  • identifier (Hash) (defaults to: {:index => 0})

    how we find a h6. You can use a multiple parameters by combining of any of the following except xpath. It defaults to => 0 which will find the first h6. The valid keys are:

    • :class

    • :id

    • :index

    • :xpath

    • :name



781
782
783
# File 'lib/druid/element_locators.rb', line 781

def h6_element(identifier={:index => 0})
  h6_for identifier.clone
end

#h6_elements(identifier = {}) ⇒ Object

Finds all h6 elements that match the provided identifier

Parameters:

  • identifier (Hash) (defaults to: {})

    how we find a h6. You can use a multiple parameters by combining of any of the following except xpath. It defaults to empty Hash which will return all h6s. The valid keys are:

    • :class

    • :id

    • :index

    • :xpath

    • :name



798
799
800
# File 'lib/druid/element_locators.rb', line 798

def h6_elements(identifier={})
  h6s_for identifier.clone
end

#hidden_field_element(identifier = {:index => 0}) ⇒ Object

Finds a hidden field

Parameters:

  • identifier (Hash) (defaults to: {:index => 0})

    how we find a hidden field. You can use a multiple parameters by combining of any of the following except xpath. It defaults to => 0 which will find the first hidden field. The valid keys are:

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


103
104
105
# File 'lib/druid/element_locators.rb', line 103

def hidden_field_element(identifier={:index => 0})
  hidden_field_for identifier.clone
end

#hidden_field_elements(identifier = {}) ⇒ Object

Finds all hidden fields that match the identifier

Parameters:

  • identifier (Hash) (defaults to: {})

    how we find all hidden fields. You can use a multiple parameters by combining of any of the following except xpath. It defaults to an empty Hash which will return all hidden fields. The valid keys are:

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


124
125
126
# File 'lib/druid/element_locators.rb', line 124

def hidden_field_elements(identifier={})
  hidden_fields_for identifier.clone
end

#image_element(identifier = {:index => 0}) ⇒ Object

Finds an image

Parameters:

  • identifier (Hash) (defaults to: {:index => 0})

    how we find an image. You can use a multiple parameters by combining of any of the following except xpath. It defaults to => 0 which will find the first image. The valid keys are:

    • :class

    • :id

    • :index

    • :name

    • :xpath

    • :alt

    • :src



454
455
456
# File 'lib/druid/element_locators.rb', line 454

def image_element(identifier={:index => 0})
  image_for identifier.clone
end

#image_elements(identifier = {}) ⇒ Object

Finds all images that match the provided identifier

Parameters:

  • identifier (Hash) (defaults to: {})

    how we find an image. You can use a multiple parameters by combining of any of the following except xpath. It defaults to empty Hash which will return all images. The valid keys are:

    • :class

    • :id

    • :index

    • :name

    • :xpath

    • :alt

    • :src



472
473
474
# File 'lib/druid/element_locators.rb', line 472

def image_elements(identifier={})
  images_for identifier.clone
end

#label_element(identifier = {:index => 0}) ⇒ Object

Finds a label

Parameters:

  • identifier (Hash) (defaults to: {:index => 0})

    how we find a label. You can use a multiple paramaters by combining of any of the following except xpath. It defaults to => 0 which will find the first label. The valid keys are:

    • :class

    • :id

    • :index

    • :name

    • :text

    • :xpath



881
882
883
# File 'lib/druid/element_locators.rb', line 881

def label_element(identifier={:index => 0})
  label_for identifier.clone
end

#label_elements(identifier = {}) ⇒ Object

Finds all labels that match the provided identifier

Parameters:

  • identifier (Hash) (defaults to: {})

    how we find a label. You can use a multiple paramaters by combining of any of the following except xpath. It defaults to empty Hash which will return all lables. The valid keys are:

    • :class

    • :id

    • :index

    • :name

    • :text

    • :xpath



898
899
900
# File 'lib/druid/element_locators.rb', line 898

def label_elements(identifier={})
  labels_for identifier.clone
end

Finds a link

Parameters:

  • identifier (Hash) (defaults to: {:index => 0})

    how we find a link. You can use a multiple parameters by combining of any of the following except xpath. It defaults to => 0 which will find the first link. The valid keys are:

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


217
218
219
# File 'lib/druid/element_locators.rb', line 217

def link_element(identifier={:index => 0})
  link_for identifier.clone
end

Finds all links for the provided identifier

Parameters:

  • identifier (Hash) (defaults to: {})

    how we find all links. You can use a multiple parameters by combining of any of the following except xpath. It defaults to empty hash which will return all links. The valid keys are:

    • :class

    • :href

    • :id

    • :index

    • :link

    • :link_text

    • :name

    • :xpath

    • :text

    • :css



238
239
240
# File 'lib/druid/element_locators.rb', line 238

def link_elements(identifier={})
  links_for identifier.clone
end

#list_item_element(identifier = {:index => 0}) ⇒ Object

Finds a list item

Parameters:

  • identifier (Hash) (defaults to: {:index => 0})

    how we find a list item. You can use a multiple parameters by combining of any of the following except xpath. It defaults to => 0 which will find the first list item. The valid keys are:

    • :class

    • :id

    • :index

    • :xpath

    • :name



520
521
522
# File 'lib/druid/element_locators.rb', line 520

def list_item_element(identifier={:index => 0})
  list_item_for identifier.clone
end

#list_item_elements(identifier = {}) ⇒ Object

Finds all list items that match the identifier

Parameters:

  • identifier (Hash) (defaults to: {})

    how we find a list item. You can use a multiple parameters by combining of any of the following except xpath. It defaults to empty Hash which will return all list items. The valid keys are:

    • :class

    • :id

    • :index

    • :xpath

    • :name



536
537
538
# File 'lib/druid/element_locators.rb', line 536

def list_item_elements(identifier={})
  list_items_for identifier.clone
end

#ordered_list_element(identifier = {:index => 0}) ⇒ Object

Finds an ordered list

Parameters:

  • identifier (Hash) (defaults to: {:index => 0})

    how we find an ordered list. You can use a multiple parameters by combining of any of the following except xpath. It defaults to => 0 which will find the first ordered list. The valid keys are:

    • :class

    • :id

    • :index

    • :xpath

    • :name



552
553
554
# File 'lib/druid/element_locators.rb', line 552

def ordered_list_element(identifier={:index => 0})
  ordered_list_for identifier.clone
end

#ordered_list_elements(identifier = {}) ⇒ Object

Finds all ordered lists that match the provided identifier

Parameters:

  • identifier (Hash) (defaults to: {})

    how we find an ordered list. You can use a multiple parameters by combining of any of the following except xpath. It defaults to empty Hash which will return all ordered lists. The valid keys are:

    • :class

    • :id

    • :index

    • :xpath

    • :name



568
569
570
# File 'lib/druid/element_locators.rb', line 568

def ordered_list_elements(identifier={})
  ordered_lists_for identifier.clone
end

#paragraph_element(identifier = {:index => 0}) ⇒ Object

Finds a paragraph

Parameters:

  • identifier (Hash) (defaults to: {:index => 0})

    how we find a paragraph. You can use a multiple parameters by combining of any of the following except xpath. It defaults to => 0 which will find the first paragraph. The valid keys are:

    • :class

    • :id

    • :index

    • :xpath

    • :name



814
815
816
# File 'lib/druid/element_locators.rb', line 814

def paragraph_element(identifier={:index => 0})
  paragraph_for identifier.clone
end

#paragraph_elements(identifier = {}) ⇒ Object

Finds all paragraph elements that match the provided identifier

Parameters:

  • identifier (Hash) (defaults to: {})

    how we find a paragraph. You can use a multiple parameters by combining of any of the following except xpath. It defaults to empty Hash which will return all paragraphs. The valid keys are:

    • :class

    • :id

    • :index

    • :xpath

    • :name



830
831
832
# File 'lib/druid/element_locators.rb', line 830

def paragraph_elements(identifier={})
  paragraphs_for identifier.clone
end

#radio_button_element(identifier = {:index => 0}) ⇒ Object

Finds a radio button

Parameters:

  • identifier (Hash) (defaults to: {:index => 0})

    how we find a radio button. You can use a multiple parameters by combining of any of the following except xpath. It defaults to => 0 which will find the first radio button. The valid keys are:

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


288
289
290
# File 'lib/druid/element_locators.rb', line 288

def radio_button_element(identifier={:index => 0})
  radio_button_for identifier.clone
end

#radio_button_elements(identifier = {}) ⇒ Object

Finds all radio button elements that match the provided identifier

Parameters:

  • identifier (Hash) (defaults to: {})

    how we find a radio button. You can use a multiple parameters by combining of any of the following except xpath. It defaults to empty Hash which will return all radio buttons. The valid keys are:

    • :class

    • :id

    • :index

    • :name

    • :xpath



304
305
306
# File 'lib/druid/element_locators.rb', line 304

def radio_button_elements(identifier={})
  radio_buttons_for identifier.clone
end

#select_list_element(identifier = {:index => 0}) ⇒ Object

Finds a select list

Parameters:

  • identifier (Hash) (defaults to: {:index => 0})

    how we find a select list. You can use a multiple parameters by combining of any of the following except xpath. It defaults to => 0 Which will find the first select list The valid keys are:

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


178
179
180
# File 'lib/druid/element_locators.rb', line 178

def select_list_element(identifier={:index => 0})
  select_list_for identifier.clone
end

#select_list_elements(identifier = {}) ⇒ Object

Finds all select lists for the provided identifier

Parameters:

  • identifier (Hash) (defaults to: {})

    how we find all select lists. You can use a multiple paramaters by combining of any of the following except xpath. It defaults to empty Hash which will return all select lists. The valid keys are:

    • :class

    • :id

    • :index

    • :name

    • :xpath

    • :value

    • :text



196
197
198
# File 'lib/druid/element_locators.rb', line 196

def select_list_elements(identifier={})
  select_lists_for identifier.clone
end

#span_element(identifier = {:index => 0}) ⇒ Object

Finds a span

Parameters:

  • identifier (Hash) (defaults to: {:index => 0})

    how we find a span. You can use a multiple parameters by combining of any of the following except xpath. It defaults to => 0 which will find the first span. The valid keys are:

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


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

def span_element(identifier={:index => 0})
  span_for identifier.clone
end

#span_elements(identifier = {}) ⇒ Object

Finds all span elements that match the provided identifier

Parameters:

  • identifier (Hash) (defaults to: {})

    how we find a span. You can use multiple parameters by combining of any of the following except xpath. It defaults to empty Hash which will return all spans. The valid keys are:

    • :class

    • :id

    • :index

    • :name

    • :xpath



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

def span_elements(identifier={})
  spans_for identifier.clone
end

#table_element(identifier = {:index => 0}) ⇒ Object

Finds a table

Parameters:

  • identifier (Hash) (defaults to: {:index => 0})

    how we find a table. You can use a multiple parameters by combining of any of the following except xpath. It defaults to => 0 which will find the first table. The valid keys are:

    • :class

    • :id

    • :index

    • :name

    • :xpath



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

def table_element(identifier={:index => 0})
  table_for identifier.clone
end

#table_elements(identifier = {}) ⇒ Object

Finds all tables with match the provided identifier

Parameters:

  • identifier (Hash) (defaults to: {})

    how we find a table. You can use a multiple parameters by combining of any of the following except xpath. It defaults to empty Hash which will return all tables. The valid keys are:

    • :class

    • :id

    • :index

    • :name

    • :xpath



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

def table_elements(identifier={})
  tables_for identifier.clone
end

#text_area_element(identifier = {:index => 0}) ⇒ Object

Finds a text area

Parameters:

  • identifier (Hash) (defaults to: {:index => 0})

    how we find a text area. You can use a multiple parameters by combining of any of the following except xpath. It defaults to => 0 which will find the first text area. The valid keys are:

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


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

def text_area_element(identifier={:index => 0})
  text_area_for identifier.clone
end

#text_area_elements(identifier = {}) ⇒ Object

Finds all text areas for the provided identifier

Parameters:

  • identifier (Hash) (defaults to: {})

    how we find all text areas. You can use a multiple parameters by combining of any of the following except xpath. It defaults to empty Hash which will return all text areas. The valid keys are:

    • :class

    • :css

    • :id

    • :index

    • :name

    • :tag_name

    • :xpath



160
161
162
# File 'lib/druid/element_locators.rb', line 160

def text_area_elements(identifier={})
  text_areas_for identifier.clone
end

#text_field_element(identifier = {:index => 0}) ⇒ Object

Finds a text field

Parameters:

  • identifier (Hash) (defaults to: {:index => 0})

    how we find a text field. You can use a multiple parameters by combining of any of the following except xpath. It defaults to => 0 which will find the first text field. The valid keys are:

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


62
63
64
# File 'lib/druid/element_locators.rb', line 62

def text_field_element(identifier={:index => 0})
  text_field_for identifier.clone
end

#text_field_elements(identifier = {}) ⇒ Object

Finds all text fields that match the provided identifier

Parameters:

  • identifier (Hash) (defaults to: {})

    how we find all text fields. You can use a multiple parameters by combining of any of the following except xpath. It defaults to empty Hash which will find all text field elements. The valid keys are:

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


83
84
85
# File 'lib/druid/element_locators.rb', line 83

def text_field_elements(identifier={})
  text_fields_for identifier.clone
end

#unordered_list_element(identifier = {:index => 0}) ⇒ Object

Finds an unordered list

Parameters:

  • identifier (Hash) (defaults to: {:index => 0})

    how we find an unordered list. You can use a multiple parameters by combining of any of the following except xpath. It defaults to => 0 which will find the first unordered list. The valid keys are:

    • :class

    • :id

    • :index

    • :xpath

    • :name



584
585
586
# File 'lib/druid/element_locators.rb', line 584

def unordered_list_element(identifier={:index => 0})
  unordered_list_for identifier.clone
end

#unordered_list_elements(identifier = {}) ⇒ Object

Finds all unordered lists that match the provided identifier

Parameters:

  • identifier (Hash) (defaults to: {})

    how we find an unordered list. You can use a multiple parameters by combining of any of the following except xpath. It defaults to empty Hash which will return all unordered lists. The valid keys are:

    • :class

    • :id

    • :index

    • :xpath

    • :name



600
601
602
# File 'lib/druid/element_locators.rb', line 600

def unordered_list_elements(identifier={})
  unordered_lists_for identifier.clone
end