Class: LdsSummaryView

Inherits:
LdsScreen show all
Defined in:
lib/TNR360/components/lds_summary_view.rb

Instance Method Summary collapse

Methods inherited from LdsScreen

#getElement, #getIdScreen, #getRootTitle, #getTitle, #getType, #isExist?, #isVisible?, #refresh, #to_s

Constructor Details

#initialize(browser, idScreen) ⇒ LdsSummaryView

Returns a new instance of LdsSummaryView.



7
8
9
10
11
12
13
# File 'lib/TNR360/components/lds_summary_view.rb', line 7

def initialize(browser, idScreen)
  @browser =browser
  @idScreen=idScreen
  @type='summary'
  update
  @exists
end

Instance Method Details

#clickObject



32
33
# File 'lib/TNR360/components/lds_summary_view.rb', line 32

def click
end

#clickSettingObject



36
37
# File 'lib/TNR360/components/lds_summary_view.rb', line 36

def clickSetting
end

#clickYesNoObject



40
41
# File 'lib/TNR360/components/lds_summary_view.rb', line 40

def clickYesNo
end

#closeRootTabObject



38
39
# File 'lib/TNR360/components/lds_summary_view.rb', line 38

def closeRootTab
end

#closeTabObject



34
35
# File 'lib/TNR360/components/lds_summary_view.rb', line 34

def closeTab
end

#extractTitleObject



30
31
# File 'lib/TNR360/components/lds_summary_view.rb', line 30

def extractTitle
end

#extractTypeObject



15
16
17
# File 'lib/TNR360/components/lds_summary_view.rb', line 15

def extractType
 puts "Screen Type: "+self.to_s
end

#updateObject



18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/TNR360/components/lds_summary_view.rb', line 18

def update
  @exists=false
  #Look for element in browser
  @current_element||= findElement @idScreen
  #fill @title
  extractTitle
  extractSubTabs @idScreen
  #fill type
  extractType
  #everything exists
  @exists=true
end