Class: LdsLov
- Inherits:
-
LdsTextField
- Object
- LdsTextField
- LdsLov
- Defined in:
- lib/TNR360/components/lds_lov.rb
Instance Method Summary collapse
-
#click ⇒ Object
click Lov.
-
#clickToOpenLov ⇒ Object
click to open Lov.
- #selectFromLov ⇒ Object
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
#click ⇒ Object
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 |
#clickToOpenLov ⇒ Object
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 |
#selectFromLov ⇒ Object
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. @browser.select_list(:id => @idField).when_present.select_value('SOCI02 - SA SOCI02').select end |