Class: Class

Inherits:
Module show all
Defined in:
lib/sapphire/Extensions/Class.rb

Instance Method Summary collapse

Methods inherited from Module

#sub_classes, #sub_modules

Instance Method Details

#Clear(item) ⇒ Object



3
4
5
6
# File 'lib/sapphire/Extensions/Class.rb', line 3

def Clear(item)
  x = item.new
  x.Clear
end

#CloseObject



34
35
36
37
# File 'lib/sapphire/Extensions/Class.rb', line 34

def Close
  x = self.new
  x.Close
end

#Complete(item) ⇒ Object



13
14
15
16
# File 'lib/sapphire/Extensions/Class.rb', line 13

def Complete(item)
  x = item.new
  x.Complete
end

#Exit(item) ⇒ Object



8
9
10
11
# File 'lib/sapphire/Extensions/Class.rb', line 8

def Exit(item)
  x = item.new
  x.Close
end

#Fail(item) ⇒ Object



18
19
20
21
# File 'lib/sapphire/Extensions/Class.rb', line 18

def Fail(item)
  x = item.new
  x.Fail
end

#Fix(evaluation, comparator) ⇒ Object



44
45
46
47
# File 'lib/sapphire/Extensions/Class.rb', line 44

def Fix(evaluation, comparator)
  comparator = comparator.Create(evaluation)
  comparator
end

#Press(item) ⇒ Object



23
24
25
26
# File 'lib/sapphire/Extensions/Class.rb', line 23

def Press(item)
  x = item.new
  x.Press
end

#Set(hash) ⇒ Object



28
29
30
31
32
# File 'lib/sapphire/Extensions/Class.rb', line 28

def Set(hash)
  text = hash[hash.keys.first]
  klass = hash.keys.first.new
  klass.Set text
end

#Show(item, comparator) ⇒ Object



39
40
41
42
# File 'lib/sapphire/Extensions/Class.rb', line 39

def Show(item, comparator)
  evaluation = $driver.ShouldNavigateTo(item, comparator)
  Fix(evaluation, comparator)
end