Class: LdsLov

Inherits:
LdsTextField show all
Defined in:
lib/TNR360/components/lds_lov.rb

Instance Method Summary collapse

Methods inherited from LdsTextField

#fill, #findElement, #getElement, #getIdBlock, #getIdScreen, #getIdentifier, #getLabel, #getValue, #initialize, #isEditable?, #isExist?, #isMandatory?, #isScreenDisplayed, #isVisible?, #refresh, #to_s

Constructor Details

This class inherits a constructor from LdsTextField

Instance Method Details

#clickObject

click Lov



6
7
8
9
10
11
# File 'lib/TNR360/components/lds_lov.rb', line 6

def click
  @clicked=false
  @browser.text_field(:id => @idField).when_present.click
  @clicked=true
  puts "Lov clicked " +@clicked.to_s
end

#clickToOpenLovObject

click to open Lov



20
21
22
23
24
25
# File 'lib/TNR360/components/lds_lov.rb', line 20

def clickToOpenLov
  @opened=false
  @current_element.parent.img.when_present.click
  @opened=true
  puts "Lov opened " +@opened.to_s
end

#selectFromLovObject



13
14
15
16
17
18
# File 'lib/TNR360/components/lds_lov.rb', line 13

def selectFromLov
  @browser.select_list(id => @idField).when_present.clear
  puts @browser.select_list(:id => @idField).when_present.options
  @browser.select_list(:id => @idField).when_present.select_value('SOCI02 - SA SOCI02').select

end