sapphire 0.7.24 → 0.7.25

Sign up to get free protection for your applications and to get access to all the features.
@@ -90,7 +90,7 @@ module Sapphire
90
90
  end
91
91
 
92
92
  def CurrentUrl
93
- wait = Selenium::WebDriver::Wait.new(:timeout => 20)
93
+ wait = Selenium::WebDriver::Wait.new(:timeout => 60)
94
94
  url = wait.until { x = self.Browser().current_url
95
95
  x unless x == nil
96
96
  }
@@ -128,7 +128,7 @@ module Sapphire
128
128
  $page ||= page
129
129
 
130
130
  timeout = GetValue(page, :wait)
131
- timeout ||= 20
131
+ timeout ||= 60
132
132
 
133
133
  $page.Init
134
134
 
@@ -202,7 +202,7 @@ module Sapphire
202
202
  end
203
203
 
204
204
  def FindItemWithWait(array, comparator=nil)
205
- masterWait = Selenium::WebDriver::Wait.new(:timeout => 5)
205
+ masterWait = Selenium::WebDriver::Wait.new(:timeout => 20)
206
206
 
207
207
  element = masterWait.until {
208
208
  x = FindItem(array, comparator)
@@ -227,7 +227,7 @@ module Sapphire
227
227
  end
228
228
 
229
229
  def FindAllItems(array)
230
- masterWait = Selenium::WebDriver::Wait.new(:timeout => 5)
230
+ masterWait = Selenium::WebDriver::Wait.new(:timeout => 20)
231
231
 
232
232
  element = masterWait.until {
233
233
  x = nil
@@ -3,7 +3,7 @@ module Sapphire
3
3
  module Browser
4
4
  def Remove(item)
5
5
  ExecuteHashAgainstControl(item) do |control, arg|
6
- wait = Selenium::WebDriver::Wait.new(:timeout => 5)
6
+ wait = Selenium::WebDriver::Wait.new(:timeout => 20)
7
7
  begin
8
8
  evaluation = wait.until { x = control
9
9
  val = x.Text
@@ -80,7 +80,7 @@ module Sapphire
80
80
 
81
81
  value = GetValue(arg, key)
82
82
  timeout = GetValue(arg, :wait)
83
- timeout ||= 5
83
+ timeout ||= 20
84
84
 
85
85
  begin
86
86
  value = value.Text if value.is_a? Control
@@ -55,7 +55,7 @@ module Sapphire
55
55
  end
56
56
 
57
57
  def Click
58
- wait = Selenium::WebDriver::Wait.new(:timeout => 3)
58
+ wait = Selenium::WebDriver::Wait.new(:timeout => 20)
59
59
  begin
60
60
  clicked = wait.until { items = self.FindAll
61
61
  if items.empty? == false
@@ -1,3 +1,3 @@
1
1
  module Sapphire
2
- VERSION = "0.7.24"
2
+ VERSION = "0.7.25"
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.7.24
4
+ version: 0.7.25
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-11 00:00:00.000000000Z
12
+ date: 2012-04-17 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: selenium-webdriver
16
- requirement: &9838068 !ruby/object:Gem::Requirement
16
+ requirement: &9792000 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *9838068
24
+ version_requirements: *9792000
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: colorize
27
- requirement: &9837816 !ruby/object:Gem::Requirement
27
+ requirement: &9791748 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *9837816
35
+ version_requirements: *9791748
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: Platform
38
- requirement: &9837564 !ruby/object:Gem::Requirement
38
+ requirement: &9791496 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *9837564
46
+ version_requirements: *9791496
47
47
  description: An automated web acceptance test framework for non-technical resources
48
48
  using selenium-wedriver.
49
49
  email: