sapphire 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ module Sapphire
3
3
  module Browser
4
4
  def Error(hash)
5
5
  ExecuteHashAgainstControl(hash) do |control, arg|
6
- control.Text == arg
6
+ return control.Text == arg
7
7
  end
8
8
  end
9
9
  end
@@ -2,7 +2,7 @@ module Sapphire
2
2
  module DSL
3
3
  module Browser
4
4
  def Hide(args)
5
- IsHidden(args) == true
5
+ return IsHidden(args) == true
6
6
  end
7
7
  end
8
8
  end
@@ -4,9 +4,9 @@ module Sapphire
4
4
  def Validate(hash)
5
5
  hash.keys.each do |key|
6
6
  if(hash[key].is_a? Symbol)
7
- key.to_s == GetPageField(hash[key]).Text
7
+ return key.to_s == GetPageField(hash[key]).Text
8
8
  else
9
- key.to_s == hash[key].to_s
9
+ return key.to_s == hash[key].to_s
10
10
  end
11
11
  end
12
12
  end
@@ -43,9 +43,9 @@ module Sapphire
43
43
  nav = page
44
44
  end
45
45
 
46
- self.current_url.upcase.start_with?("HTTPS://" + nav.Url.upcase) == true
46
+ temp = self.current_url.upcase.start_with?("HTTPS://" + nav.Url.upcase) == true
47
47
 
48
- nav
48
+ return temp, nav
49
49
  end
50
50
 
51
51
  def Run(background)
@@ -59,13 +59,15 @@ module Sapphire
59
59
 
60
60
  def ShouldTransitionTo(url)
61
61
  if(url.instance_of?(String))
62
- self.current_url.upcase.start_with?("HTTPS://" + url.upcase) == true
62
+ temp = self.current_url.upcase.start_with?("HTTPS://" + url.upcase) == true
63
63
  @rootUrl = url
64
64
  else
65
65
  x = url.new().Url
66
- self.current_url.upcase.start_with?("HTTPS://" + x.upcase) == true
66
+ temp = self.current_url.upcase.start_with?("HTTPS://" + x.upcase) == true
67
67
  @rootUrl = x
68
68
  end
69
+
70
+ return temp
69
71
  end
70
72
  end
71
73
  end
@@ -1,3 +1,3 @@
1
1
  module Sapphire
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sapphire
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: albacore
17
- requirement: &27203472 !ruby/object:Gem::Requirement
17
+ requirement: &27257952 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *27203472
25
+ version_requirements: *27257952
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: selenium-webdriver
28
- requirement: &27203148 !ruby/object:Gem::Requirement
28
+ requirement: &27257664 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *27203148
36
+ version_requirements: *27257664
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: activesupport
39
- requirement: &27202836 !ruby/object:Gem::Requirement
39
+ requirement: &27257400 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,7 +44,7 @@ dependencies:
44
44
  version: '0'
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *27202836
47
+ version_requirements: *27257400
48
48
  description: An automated web acceptance test framework for non-technical resources
49
49
  using selenium-wedriver.
50
50
  email: