firewatir 1.8.0.rc1 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/CHANGES +2 -1
  2. data/VERSION +1 -1
  3. data/lib/firewatir/firefox.rb +7 -0
  4. metadata +10 -14
data/CHANGES CHANGED
@@ -1,4 +1,4 @@
1
- == Version X.X.X - 2011/XX/XX
1
+ == Version 1.8.0 - 2011/28/02
2
2
 
3
3
  === IE improvements
4
4
 
@@ -9,6 +9,7 @@
9
9
 
10
10
  * Removed dependency for ActiveSupport, making it possible to use FireWatir with Rails 3 (Jarmo Pertman)
11
11
  * Removed :waitTime option and try to handle better firefox startup (Jarmo Pertman)
12
+ * Added #exists? with alias #exist? to FireWatir::Firefox browser object (Jarmo Pertman)
12
13
 
13
14
  == Version 1.7.1 - 2011/01/10
14
15
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.8.0.rc1
1
+ 1.8.0
@@ -106,6 +106,13 @@ module FireWatir
106
106
  wait()
107
107
  end
108
108
 
109
+ # Returns true if Firefox window is opened.
110
+ def exists?
111
+ !!find_window(:url, @window_url)
112
+ end
113
+
114
+ alias_method :exist?, :exists?
115
+
109
116
  # Loads the previous page (if there is any) in the browser. Waits for the page to get loaded.
110
117
  def back()
111
118
  js_eval "if(#{browser_var}.canGoBack) #{browser_var}.goBack()"
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: firewatir
3
3
  version: !ruby/object:Gem::Version
4
- hash: 977940510
5
- prerelease: true
4
+ hash: 55
5
+ prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 8
9
9
  - 0
10
- - rc1
11
- version: 1.8.0.rc1
10
+ version: 1.8.0
12
11
  platform: ruby
13
12
  authors:
14
13
  - Angrez Singh
@@ -16,7 +15,7 @@ autorequire:
16
15
  bindir: bin
17
16
  cert_chain: []
18
17
 
19
- date: 2011-02-25 00:00:00 -07:00
18
+ date: 2011-02-28 00:00:00 -07:00
20
19
  default_executable:
21
20
  dependencies:
22
21
  - !ruby/object:Gem::Dependency
@@ -27,13 +26,12 @@ dependencies:
27
26
  requirements:
28
27
  - - "="
29
28
  - !ruby/object:Gem::Version
30
- hash: 977940510
29
+ hash: 55
31
30
  segments:
32
31
  - 1
33
32
  - 8
34
33
  - 0
35
- - rc1
36
- version: 1.8.0.rc1
34
+ version: 1.8.0
37
35
  type: :runtime
38
36
  version_requirements: *id001
39
37
  description: " FireWatir stands for \"Web Application Testing in Ruby for Firefox\". FireWatir (pronounced firewater) is a free, \n open-source functional testing tool for automating browser-based tests of web applications. \n It works with applications written in any language.\n FireWatir drives the Firefox browser the same way an end user would. \n It clicks links, fills in forms, presses buttons. \n FireWatir also checks results, such as whether expected text appears on the page, or whether a control is enabled.\n FireWatir is a Ruby library that works with Firefox on Windows. It also works on Linux, Mac but without support for\n JavaScript popups (currently support will be there shortly).\n"
@@ -197,14 +195,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
197
195
  required_rubygems_version: !ruby/object:Gem::Requirement
198
196
  none: false
199
197
  requirements:
200
- - - ">"
198
+ - - ">="
201
199
  - !ruby/object:Gem::Version
202
- hash: 25
200
+ hash: 3
203
201
  segments:
204
- - 1
205
- - 3
206
- - 1
207
- version: 1.3.1
202
+ - 0
203
+ version: "0"
208
204
  requirements:
209
205
  - Mozilla Firefox browser 1.5 or later.
210
206
  rubyforge_project: Watir