jwilger-webrat 0.4.2.3 → 0.4.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -40,7 +40,7 @@ module Webrat
40
40
 
41
41
  def fill_in(field_identifier, options)
42
42
  locator = "webrat=#{Regexp.escape(field_identifier)}"
43
- selenium.wait_for_element locator, 5
43
+ selenium.wait_for_element locator, Webrat.configuration.selenium_server_timeout
44
44
  selenium.type(locator, "#{options[:with]}")
45
45
  end
46
46
 
@@ -63,7 +63,7 @@ module Webrat
63
63
  pattern ||= '*'
64
64
  locator = "button=#{pattern}"
65
65
 
66
- selenium.wait_for_element locator, 5
66
+ selenium.wait_for_element locator, Webrat.configuration.selenium_server_timeout
67
67
  selenium.click locator
68
68
  end
69
69
 
@@ -72,7 +72,7 @@ module Webrat
72
72
  def click_link(link_text_or_regexp, options = {})
73
73
  pattern = adjust_if_regexp(link_text_or_regexp)
74
74
  locator = "webratlink=#{pattern}"
75
- selenium.wait_for_element locator, 5
75
+ selenium.wait_for_element locator, Webrat.configuration.selenium_server_timeout
76
76
  selenium.click locator
77
77
  end
78
78
 
@@ -80,7 +80,7 @@ module Webrat
80
80
 
81
81
  def click_link_within(selector, link_text, options = {})
82
82
  locator = "webratlinkwithin=#{selector}|#{link_text}"
83
- selenium.wait_for_element locator, 5
83
+ selenium.wait_for_element locator, Webrat.configuration.selenium_server_timeout
84
84
  selenium.click locator
85
85
  end
86
86
 
@@ -95,7 +95,7 @@ module Webrat
95
95
  select_locator = "webratselectwithoption=#{option_text}"
96
96
  end
97
97
 
98
- selenium.wait_for_element select_locator, 5
98
+ selenium.wait_for_element select_locator, Webrat.configuration.selenium_server_timeout
99
99
  selenium.select(select_locator, option_text)
100
100
  end
101
101
 
@@ -103,7 +103,7 @@ module Webrat
103
103
 
104
104
  def choose(label_text)
105
105
  locator = "webrat=#{label_text}"
106
- selenium.wait_for_element locator, 5
106
+ selenium.wait_for_element locator, Webrat.configuration.selenium_server_timeout
107
107
  selenium.click locator
108
108
  end
109
109
 
@@ -111,7 +111,7 @@ module Webrat
111
111
 
112
112
  def check(label_text)
113
113
  locator = "webrat=#{label_text}"
114
- selenium.wait_for_element locator, 5
114
+ selenium.wait_for_element locator, Webrat.configuration.selenium_server_timeout
115
115
  selenium.click locator
116
116
  end
117
117
  alias_method :uncheck, :check
@@ -134,7 +134,7 @@ module Webrat
134
134
  end
135
135
 
136
136
  def wait_for(params={})
137
- timeout = params[:timeout] || 5
137
+ timeout = params[:timeout] || Webrat.configuration.selenium_server_timeout
138
138
  message = params[:message] || "Timeout exceeded"
139
139
 
140
140
  begin_time = Time.now
data/lib/webrat.rb CHANGED
@@ -7,7 +7,7 @@ module Webrat
7
7
  class WebratError < StandardError
8
8
  end
9
9
 
10
- VERSION = '0.4.2.3'
10
+ VERSION = '0.4.2.4'
11
11
 
12
12
  def self.require_xml
13
13
  gem "nokogiri", ">= 1.0.6"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jwilger-webrat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2.3
4
+ version: 0.4.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Helmkamp