rwebspec 4.2.0 → 4.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,5 +1,7 @@
1
1
  CHANGELOG
2
2
  =========
3
+ 4.2.1
4
+ [Fixes] assert_not_exists for Selenium
3
5
 
4
6
  4.1.8
5
7
  [Fixes] assert
data/Rakefile CHANGED
@@ -78,7 +78,7 @@ end
78
78
  spec = Gem::Specification.new do |s|
79
79
  s.platform= Gem::Platform::RUBY
80
80
  s.name = "rwebspec"
81
- s.version = "4.2.0"
81
+ s.version = "4.2.1"
82
82
  s.summary = "Web application functional specification in Ruby"
83
83
  s.description = "Executable functional specification for web applications in RSpec syntax with Watir or Selenium"
84
84
 
@@ -355,7 +355,11 @@ module RWebSpec
355
355
  alias assert_element_exists assert_exists
356
356
 
357
357
  def assert_not_exists(tag, element_id)
358
- perform_assertion { assert_not(eval("#{tag}(:id, '#{element_id.to_s}').exists?"), "Unexpected element'#{tag}' + with id: '#{element_id}' found")}
358
+ if RWebSpec.framework == "Watir"
359
+ perform_assertion { assert_not(eval("#{tag}(:id, '#{element_id.to_s}').exists?"), "Unexpected element'#{tag}' + with id: '#{element_id}' found")}
360
+ else
361
+ perform_assertion { assert_not( @web_browser.driver.find_element(:tag_name => tag, :id => element_id))}
362
+ end
359
363
  end
360
364
 
361
365
  alias assert_not_exists? assert_not_exists
@@ -163,7 +163,6 @@ module RWebSpec
163
163
  # Example:
164
164
  # begin_at("http://www.itest2.com")
165
165
  def begin_at(url)
166
- # puts "[DEBUG] [SeleniumBrowser] begin_at #{url}"
167
166
  dump_caller_stack
168
167
  @web_browser.begin_at(url)
169
168
  end
data/lib/rwebspec.rb CHANGED
@@ -16,7 +16,7 @@ end
16
16
  require 'rspec'
17
17
 
18
18
  unless defined? RWEBSPEC_VERSION
19
- RWEBSPEC_VERSION = RWEBUNIT_VERSION = "4.2.0"
19
+ RWEBSPEC_VERSION = RWEBUNIT_VERSION = "4.2.1"
20
20
  end
21
21
 
22
22
  $testwise_polling_interval = 1 # seconds
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rwebspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.0
4
+ version: 4.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire: rwebspec
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-10 00:00:00.000000000 Z
12
+ date: 2013-06-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -163,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - none
165
165
  rubyforge_project: rwebspec
166
- rubygems_version: 1.8.23
166
+ rubygems_version: 1.8.25
167
167
  signing_key:
168
168
  specification_version: 3
169
169
  summary: Web application functional specification in Ruby