rwebspec 4.3.3 → 4.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/Rakefile +1 -1
- data/lib/rwebspec-webdriver/web_browser.rb +4 -4
- data/lib/rwebspec.rb +1 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
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.3.
|
81
|
+
s.version = "4.3.4"
|
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
|
|
@@ -582,7 +582,7 @@ module RWebSpec
|
|
582
582
|
if values
|
583
583
|
values.class == Array ? arys = values : arys = [values]
|
584
584
|
elements = find_elements(:name, checkBoxName)
|
585
|
-
the_checkbox = elements[0] if elements.size
|
585
|
+
the_checkbox = elements[0] if elements.size > 0
|
586
586
|
if the_checkbox
|
587
587
|
the_checkbox.click unless the_checkbox.selected?
|
588
588
|
return
|
@@ -599,7 +599,7 @@ module RWebSpec
|
|
599
599
|
end
|
600
600
|
end
|
601
601
|
|
602
|
-
#
|
602
|
+
# Uncheck a checkbox
|
603
603
|
# Usage:
|
604
604
|
# uncheck_checkbox("agree")
|
605
605
|
# uncheck_checkbox("agree", "false")
|
@@ -607,7 +607,7 @@ module RWebSpec
|
|
607
607
|
if values
|
608
608
|
values.class == Array ? arys = values : arys = [values]
|
609
609
|
elements = find_elements(:name, checkBoxName)
|
610
|
-
the_checkbox = elements[0] if elements.size
|
610
|
+
the_checkbox = elements[0] if elements.size > 0
|
611
611
|
if the_checkbox
|
612
612
|
the_checkbox.click if the_checkbox.selected?
|
613
613
|
return
|
@@ -615,7 +615,7 @@ module RWebSpec
|
|
615
615
|
|
616
616
|
arys.each { |cbx_value|
|
617
617
|
elements.each do |elem|
|
618
|
-
elem.click if elem.attribute('value') == cbx_value &&
|
618
|
+
elem.click if elem.attribute('value') == cbx_value && elem && elem.selected?
|
619
619
|
end
|
620
620
|
}
|
621
621
|
else
|
data/lib/rwebspec.rb
CHANGED
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.3.
|
4
|
+
version: 4.3.4
|
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-
|
12
|
+
date: 2013-08-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|